]> Cypherpunks repositories - gostls13.git/commit
net/http/httputil: remove custom hop-by-hop headers from response in ReverseProxy
authorSina Siadat <siadat@gmail.com>
Thu, 8 Sep 2016 07:09:12 +0000 (11:39 +0430)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 8 Sep 2016 19:12:03 +0000 (19:12 +0000)
commitdaa7c607d269e4779b74174032639b552174868f
tree0f15c9639cfc111d9dcf1da154d546ae4a2390e6
parented8f207940c8787d344664a43071b235e2ce5c68
net/http/httputil: remove custom hop-by-hop headers from response in ReverseProxy

Hop-by-hop headers (explicitly mentioned in RFC 2616) were already
removed from the response. This removes the custom hop-by-hop
headers listed in the "Connection" header of the response.

Updates #16875

Change-Id: I6b8f261d38b8d72040722f3ded29755ef0303427
Reviewed-on: https://go-review.googlesource.com/28810
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/httputil/reverseproxy.go
src/net/http/httputil/reverseproxy_test.go