mirror of
https://github.com/golang/go
synced 2024-11-12 00:30:22 -07:00
undo CL 5477092 / c3c6e72d7cc5
The obvious fix is breaking the build in non-obvious ways. Reverting while waiting for the correct fix, if any is needed. ««« original CL description net/http: fix bug in error checking Thanks to josef86@gmail.com for pointing this out. R=golang-dev, iant CC=golang-dev https://golang.org/cl/5477092 »»» R=iant CC=golang-dev https://golang.org/cl/5488085
This commit is contained in:
parent
c0421d92c8
commit
25e94154b7
@ -544,7 +544,7 @@ func (pc *persistConn) readLoop() {
|
||||
resp.Header.Del("Content-Length")
|
||||
resp.ContentLength = -1
|
||||
gzReader, zerr := gzip.NewReader(resp.Body)
|
||||
if zerr != nil {
|
||||
if err != nil {
|
||||
pc.close()
|
||||
err = zerr
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user