]> Cypherpunks repositories - gostls13.git/commit
http: fix hanging bug with HEAD responses
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 4 Apr 2011 23:58:11 +0000 (16:58 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 4 Apr 2011 23:58:11 +0000 (16:58 -0700)
commit7c9c4fc3a189399385960254facfab6feff55d5f
treeb72e214a87fcc2110626ed9f6fc444b176bcbe6a
parent2be13a80c78e22a89fba27450cf813a2fe22ebca
http: fix hanging bug with HEAD responses

The transport readLoop was waiting forever for the client to
read the non-existent body before proceeding to read the next
request.

R=rsc
CC=golang-dev
https://golang.org/cl/4357051
src/pkg/http/transport.go
src/pkg/http/transport_test.go