Browse Source

server path compatible with client path

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

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

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