Merge branch 'master' into active-health-redirect-origin-policy
This commit is contained in:
commit
6fe919c04a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue