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)