]> Cypherpunks repositories - gostls13.git/commit
net/http/httputil: don't add User-Agent header by proxy made with NewSingleHostRevers...
authorArtyom Pervukhin <artyom.pervukhin@gmail.com>
Mon, 16 May 2016 12:30:28 +0000 (15:30 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 16 May 2016 15:03:59 +0000 (15:03 +0000)
commit6a6c1d9841a1957a2fd292df776ea920ae38ea00
treea0bf094ffab48c02d9d8366b8fe64eba2ae5b412
parenta101b85e00f302706d8b1de1d2173a154d5f54cc
net/http/httputil: don't add User-Agent header by proxy made with NewSingleHostReverseProxy

If client does not provided User-Agent header, do not set default one
used by net/http package when doing request to backend.

Fixes #15524

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