]> Cypherpunks repositories - gostls13.git/commit
http: Client.Do should follow redirects for GET and HEAD
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 19 May 2011 00:17:26 +0000 (17:17 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 19 May 2011 00:17:26 +0000 (17:17 -0700)
commit4ffff35abd9562007b0cf4ee8034ded8760e5e2a
treecb49a1b9107e0da5df50c63dbdf604ef50d8a5f6
parent1d550bdedf4fe73de48a1d77897f651a1bf5b9f3
http: Client.Do should follow redirects for GET and HEAD

It's documented as such, but it was never wired up
after Transport went in and Head was fixed.

If people don't want redirects, that's what RoundTripper/
Transport are for.  Or a custom redirect policy.

R=golang-dev, kevlar
CC=golang-dev
https://golang.org/cl/4526065
src/pkg/http/client.go
src/pkg/http/client_test.go