diff options
author | Robert Griesemer <gri@golang.org> | 2011-12-14 10:44:34 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2011-12-14 10:44:34 -0800 |
commit | 3412835bfb7a860dc9b3048913d170e0d027f7f0 (patch) | |
tree | a532924ada9c9f5660af0d4c862f17dba568c8eb /src/pkg/net/http/transport.go | |
parent | ec9e4486464b71afbb432a70d72c80025c2ae6dd (diff) | |
download | go-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.go | 2 |
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 { |