@marcel91200 / caddy Mirror · read-only / commits / 42a66289
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

reverseproxy: Add Alt-Svc to Hop-by-hop headers list (#3159)

Adds `Alt-Svc` to the list of headers that get removed when proxying to a backend. This fixes the issue of having the contents of the Alt-Svc header duplicated when proxying to another Caddy server.

Paolo Barbolini committed Mar 20, 2020 at 13:54 UTC 42a6628935d9bdda3391daf8665b39ef046ccbe0
1 file changed +1
modules/caddyhttp/reverseproxy/reverseproxy.go
+1
@@ -725,6 +725,7 @@ type Selector interface {
725 // obsoleted RFC 2616 (section 13.5.1) and are used for backward
726 // compatibility.
727 var hopHeaders = []string{
728 + "Alt-Svc",
729 "Connection",
730 "Proxy-Connection", // non-standard but still sent by libcurl and rejected by e.g. google
731 "Keep-Alive",