Browse Source

feature: v4.45.2版本改造

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

+ 1 - 1
transport/internet/websocket/hub.go

@@ -48,7 +48,7 @@ func (h *requestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Req
 			return
 		}
 	} else if h.earlyDataHeaderName != "" {
-		if strings.HasPrefix(request.URL.Path, h.path) {
+		if !strings.HasPrefix(request.URL.Path, h.path) {
 			writer.WriteHeader(http.StatusNotFound)
 			return
 		}