Przeglądaj źródła

feature: v4.45.2版本改造

wytfy 6 miesięcy temu
rodzic
commit
aaad94a11d
1 zmienionych plików z 1 dodań i 1 usunięć
  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
 		}