aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2011-12-14 10:44:34 -0800
committerRobert Griesemer <gri@golang.org>2011-12-14 10:44:34 -0800
commit25e94154b719506511b16e0936dcea60846fa790 (patch)
tree6cdf572768d81ba1cab906100fb42a647c513937
parentc0421d92c87c9428a5f3f8e5457fda88db585c90 (diff)
downloadgo-25e94154b719506511b16e0936dcea60846fa790.tar.gz
go-25e94154b719506511b16e0936dcea60846fa790.zip
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
-rw-r--r--src/pkg/net/http/transport.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/net/http/transport.go b/src/pkg/net/http/transport.go
index 62d36d6986..dc70be43f2 100644
--- a/src/pkg/net/http/transport.go
+++ b/src/pkg/net/http/transport.go
@@ -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 {