0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

Keep quic protocol headers only between one hop

Removing quic protocol headers from being persisted during proxy requests.
Not removing them could lead to the client attempting to connect to the wrong port.
This makes the quic headers consistent with other protocol headers.
This commit is contained in:
Michael Grosser 2016-08-23 22:05:56 +00:00 committed by GitHub
parent 151d0baa94
commit 3dc98c8ce3

View file

@ -271,6 +271,8 @@ var hopHeaders = []string{
"Trailers",
"Transfer-Encoding",
"Upgrade",
"Alternate-Protocol",
"Alt-Svc",
}
type respUpdateFn func(resp *http.Response)