From 3dc98c8ce3f92187221dc6381cb31c17923dd65c Mon Sep 17 00:00:00 2001 From: Michael Grosser Date: Tue, 23 Aug 2016 22:05:56 +0000 Subject: [PATCH] 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. --- caddyhttp/proxy/reverseproxy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/caddyhttp/proxy/reverseproxy.go b/caddyhttp/proxy/reverseproxy.go index 3c7752bb..5038afcb 100644 --- a/caddyhttp/proxy/reverseproxy.go +++ b/caddyhttp/proxy/reverseproxy.go @@ -271,6 +271,8 @@ var hopHeaders = []string{ "Trailers", "Transfer-Encoding", "Upgrade", + "Alternate-Protocol", + "Alt-Svc", } type respUpdateFn func(resp *http.Response)