Parcourir la source

feature: v4.45.2版本改造

wytfy il y a 6 mois
Parent
commit
aaad94a11d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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
 		}