Skip to content

Commit

Permalink
Merge branch 'master' into 1728-log-rotate-compress
Browse files Browse the repository at this point in the history
  • Loading branch information
fern4lvarez authored Jun 27, 2017
2 parents 3c8ec14 + 43b56d6 commit 7aeaec6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions caddyhttp/proxy/reverseproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,12 @@ func copyHeader(dst, src http.Header) {
if _, shouldSkip := skipHeaders[k]; shouldSkip {
continue
}
// otherwise, overwrite
dst.Del(k)
// otherwise, overwrite to avoid duplicated fields that can be
// problematic (see issue #1086) -- however, allow duplicate
// Server fields so we can see the reality of the proxying.
if k != "Server" {
dst.Del(k)
}
}
for _, v := range vv {
dst.Add(k, v)
Expand Down

0 comments on commit 7aeaec6

Please sign in to comment.