Merge branch 'master' into active-health-redirect-origin-policy

This commit is contained in:
Zen Dodd 2026-11-05 18:58:09 +10:00 committed by GitHub
commit 6fe919c04a
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
}