Merge branch 'master' into unicode-path-stripping

This commit is contained in:
Zen Dodd 2026-11-05 18:58:03 +10:00 committed by GitHub
commit d080de1cf4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -655,7 +655,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyht
if randErr != nil {
return randErr
}
clonedReq.Header.Del("Sec-WebSocket-Key")
clonedReq.Header.Del("Sec-WebSocket-Key") //nolint:canonicalheader // RFC 6455 casing, see normalizeWebsocketHeaders
clonedReq.Header["Sec-WebSocket-Key"] = []string{base64.StdEncoding.EncodeToString(key)} //nolint:canonicalheader // RFC 6455 casing, see normalizeWebsocketHeaders
}