]> Cypherpunks repositories - gostls13.git/commit
http: corrects undocumented side effects in http.DefaultTransport's RoundTrip method
authorDave Grijalva <dgrijalva@ngmoco.com>
Wed, 10 Aug 2011 21:16:13 +0000 (14:16 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 10 Aug 2011 21:16:13 +0000 (14:16 -0700)
commit8f3c7497acd69d980d40f55ebf97ae2f9a7fd034
treeaf6e82bcfe61cad5051b762df33d9100d9f78b89
parentebb2f4af3506f788213cb7c741340226f601b4c5
http: corrects undocumented side effects in http.DefaultTransport's RoundTrip method
Fixes #2140.

The http.DefaultTransport's RoundTrip method leaves the http.Request object
in an altered state after performing the round trip.  This patch removes
the header from the Request before returning to the client.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/4857041
src/pkg/http/transport.go
src/pkg/http/transport_test.go