]> Cypherpunks repositories - gostls13.git/commit
http: fix failing Transport HEAD request with gzip-looking response
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 14 Dec 2011 19:20:21 +0000 (11:20 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 14 Dec 2011 19:20:21 +0000 (11:20 -0800)
commit22dafc9bc5c8b339628a64c9f786491a60031005
tree154d22782cedd88bbd66e3d8c1f0511b0b802a30
parent6890afd9a34646b20043d0dffe32cabd0f3ec51c
http: fix failing Transport HEAD request with gzip-looking response

We only want to attempt to un-gzip if there's a body (not in
response to a HEAD)

This was accidentally passing before, but revealed to be broken
when c3c6e72d7cc went in.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5477093
src/pkg/net/http/transport.go