Commit 25e94154 authored by Robert Griesemer's avatar Robert Griesemer

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
parent c0421d92
...@@ -544,7 +544,7 @@ func (pc *persistConn) readLoop() { ...@@ -544,7 +544,7 @@ func (pc *persistConn) readLoop() {
resp.Header.Del("Content-Length") resp.Header.Del("Content-Length")
resp.ContentLength = -1 resp.ContentLength = -1
gzReader, zerr := gzip.NewReader(resp.Body) gzReader, zerr := gzip.NewReader(resp.Body)
if zerr != nil { if err != nil {
pc.close() pc.close()
err = zerr err = zerr
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment