summaryrefslogtreecommitdiff
path: root/src/pkg/net/http/transport.go
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
commit3412835bfb7a860dc9b3048913d170e0d027f7f0 (patch)
treea532924ada9c9f5660af0d4c862f17dba568c8eb /src/pkg/net/http/transport.go
parentec9e4486464b71afbb432a70d72c80025c2ae6dd (diff)
downloadgo-3412835bfb7a860dc9b3048913d170e0d027f7f0.tar.gz
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 http://codereview.appspot.com/5477092 ??? R=iant CC=golang-dev http://codereview.appspot.com/5488085
Diffstat (limited to 'src/pkg/net/http/transport.go')
-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 62d36d698..dc70be43f 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 {