]> Cypherpunks repositories - gostls13.git/commit
net/http: add missing error checking reading trailers
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 14 Nov 2012 06:38:25 +0000 (22:38 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 14 Nov 2012 06:38:25 +0000 (22:38 -0800)
commit56bcef02fca3299bfd162fea1c647754cd071714
tree60fc1be8b065a094982e5cd2bdee5846461a0a0e
parentaa3880178850ab0525802a48fc4eeadcdbb2c26c
net/http: add missing error checking reading trailers

This is a simplified version of earlier versions of this CL
and now only fixes obviously incorrect things, without
changing the locking on bodyEOFReader.

I'd like to see if this is sufficient before changing the
locking.

Update #4191

R=golang-dev, rsc, dave
CC=golang-dev
https://golang.org/cl/6739055
src/pkg/net/http/client_test.go
src/pkg/net/http/transfer.go
src/pkg/net/http/transfer_test.go [new file with mode: 0644]
src/pkg/net/http/transport.go