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
Showing
Please
register
or
sign in
to comment