diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2020-04-30 09:03:55 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2020-05-01 05:30:49 +0000 |
| commit | b8fd3cab3944d5dd5f2a50f3cc131b1048897ee1 (patch) | |
| tree | 048d5c6acfed8c3a7204540fc9ad225c079ea0e5 /src/net/http/proxy_test.go | |
| parent | e1d16843bdbf85c99bc963b7a343cbffa047e378 (diff) | |
| download | go-b8fd3cab3944d5dd5f2a50f3cc131b1048897ee1.tar.xz | |
net/http: remove badStringError, make some unexported structs non-comparable
Reduces binary size by 4K, not counting the http2 changes (in CL
231119) that'll be bundled into this package in the future.
Updates golang/go#38782
Change-Id: Id360348707e076b8310a8f409e412d68dd2394b2
Reviewed-on: https://go-review.googlesource.com/c/go/+/231118
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/net/http/proxy_test.go')
| -rw-r--r-- | src/net/http/proxy_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/proxy_test.go b/src/net/http/proxy_test.go index feb7047a58..0dd57b4125 100644 --- a/src/net/http/proxy_test.go +++ b/src/net/http/proxy_test.go @@ -35,7 +35,7 @@ func TestCacheKeys(t *testing.T) { } proxy = u } - cm := connectMethod{proxy, tt.scheme, tt.addr, false} + cm := connectMethod{proxyURL: proxy, targetScheme: tt.scheme, targetAddr: tt.addr} if got := cm.key().String(); got != tt.key { t.Fatalf("{%q, %q, %q} cache key = %q; want %q", tt.proxy, tt.scheme, tt.addr, got, tt.key) } |
