From 25e94154b719506511b16e0936dcea60846fa790 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 14 Dec 2011 10:44:34 -0800 Subject: [PATCH] undo CL 5477092 / c3c6e72d7cc5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/pkg/net/http/transport.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.50.0