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/server.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/server.go')
| -rw-r--r-- | src/net/http/server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/http/server.go b/src/net/http/server.go index 515d98c989..b613c21f16 100644 --- a/src/net/http/server.go +++ b/src/net/http/server.go @@ -629,6 +629,7 @@ func (srv *Server) newConn(rwc net.Conn) *conn { } type readResult struct { + _ incomparable n int err error b byte // byte read, if n == 1 |
