Explorar o código

feature: v4.45.2版本改造

wytfy hai 6 meses
pai
achega
aaad94a11d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 		}