소스 검색

测试输出路径

wytfy 7 달 전
부모
커밋
217e82af97
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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 {