1
0
mirror of https://github.com/golang/go synced 2024-10-01 13:18:33 -06:00
go/src/net/http
Sina Siadat daa7c607d2 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>
2016-09-08 19:12:03 +00:00
..
cgi net/http, net/http/cgi: fix for CGI + HTTP_PROXY security issue 2016-07-18 14:58:26 +00:00
cookiejar
fcgi
httptest crypto/tls: add Config.Clone 2016-09-01 04:26:12 +00:00
httptrace net/http, cmd/compile: minor vet fixes 2016-08-25 21:21:59 +00:00
httputil net/http/httputil: remove custom hop-by-hop headers from response in ReverseProxy 2016-09-08 19:12:03 +00:00
internal all: use SeekStart, SeekCurrent, SeekEnd 2016-05-06 00:10:41 +00:00
pprof net/http/pprof: remove comments pointing to gperftools 2016-06-28 02:40:20 +00:00
testdata
client_test.go net/http: if context is canceled, return its error 2016-08-23 05:31:45 +00:00
client.go net/http: stop timeout timer if user cancels a request 2016-08-30 02:06:07 +00:00
clientserver_test.go net/http: update bundled http2 2016-05-20 05:53:06 +00:00
cookie_test.go
cookie.go
doc.go
example_test.go
export_test.go net/http: update bundled http2 2016-05-20 05:53:06 +00:00
filetransport_test.go
filetransport.go
fs_test.go net/http: send Content-Range if no byte range overlaps 2016-08-25 17:52:35 +00:00
fs.go net/http: send Content-Range if no byte range overlaps 2016-08-25 17:52:35 +00:00
h2_bundle.go net/http: update bundled http2 for Transport double STREAM_ENDED error 2016-08-22 00:55:53 +00:00
header_test.go
header.go
http_test.go all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
http.go all: rename vendored golang.org/x/net packages to golang_org 2016-07-13 18:35:40 +00:00
jar.go
main_test.go net/http: fix typo in comment in main_test 2016-05-02 21:02:54 +00:00
method.go net/http: correct RFC for MethodPatch 2016-05-04 22:11:56 +00:00
npn_test.go
proxy_test.go
race.go
range_test.go net/http: send Content-Range if no byte range overlaps 2016-08-25 17:52:35 +00:00
readrequest_test.go
request_test.go net/http: make the MaxBytesReader.Read error sticky 2016-05-11 17:10:58 +00:00
request.go net/http: http.Request.Context doc fix 2016-06-02 05:25:46 +00:00
requestwrite_test.go
response_test.go net/http: add Response.Uncompressed bool 2016-05-01 06:29:57 +00:00
response.go net/http: omit Content-Length in Response.Write for 1xx or 204 status 2016-09-01 21:10:22 +00:00
responsewrite_test.go net/http: omit Content-Length in Response.Write for 1xx or 204 status 2016-09-01 21:10:22 +00:00
serve_test.go all: use time.Until where applicable 2016-08-30 01:23:46 +00:00
server.go net/http: fix data race with concurrent use of Server.Serve 2016-07-27 05:43:36 +00:00
sniff_test.go
sniff.go
status.go net/http: add missing HTTP status codes 2016-05-25 23:27:21 +00:00
transfer_test.go
transfer.go net/http: use keyed composite literal 2016-08-16 14:37:02 +00:00
transport_internal_test.go net/http: make Transport retry non-idempotent requests if no bytes written 2016-08-16 06:20:12 +00:00
transport_test.go net/http: fix ordering & data race in TestTransportEventTrace_h2 2016-08-30 18:26:45 +00:00
transport.go crypto/tls: add Config.Clone 2016-09-01 04:26:12 +00:00
triv.go