Browse Source

测试输出路径

wytfy 5 months ago
parent
commit
217e82af97
1 changed files with 3 additions and 0 deletions
  1. 3 0
      transport/internet/websocket/hub.go

+ 3 - 0
transport/internet/websocket/hub.go

@@ -6,6 +6,7 @@ import (
 	"crypto/tls"
 	"encoding/base64"
 	"io"
+	"log"
 	"net/http"
 	"strings"
 	"sync"
@@ -40,6 +41,8 @@ var upgrader = &websocket.Upgrader{
 func (h *requestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request) {
 	responseHeader := http.Header{}
 
+	log.Printf("request-path: %s h-path: %s", request.URL.Path, h.path)
+
 	var earlyData io.Reader
 	if !h.earlyDataEnabled { // nolint: gocritic
 		if request.URL.Path != h.path {