Browse Source

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.
master
Paolo Barbolini 5 years ago
committed by GitHub
parent
commit
42a6628935
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      modules/caddyhttp/reverseproxy/reverseproxy.go

1
modules/caddyhttp/reverseproxy/reverseproxy.go

@ -725,6 +725,7 @@ type Selector interface {
// obsoleted RFC 2616 (section 13.5.1) and are used for backward
// compatibility.
var hopHeaders = []string{
"Alt-Svc",
"Connection",
"Proxy-Connection", // non-standard but still sent by libcurl and rejected by e.g. google
"Keep-Alive",

Loading…
Cancel
Save