1
0
mirror of https://github.com/golang/go synced 2024-10-07 09:11:21 -06:00
go/src/pkg/http
Brad Fitzpatrick 4ffff35abd 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
2011-05-18 17:17:26 -07:00
..
cgi http/cgi: pass down environment variables for irix and solaris 2011-04-29 10:38:07 -07:00
fcgi cgi: export RequestFromMap 2011-04-28 13:30:53 -07:00
httptest src/pkg: make package doc comments consistently start with "Package foo". 2011-04-20 09:57:05 +10:00
pprof http/pprof: fix POST reading bug 2011-05-02 17:34:22 -04:00
spdy go/printer, gofmt: fix alignment of "=" in const/var declarations 2011-05-09 15:16:34 -07:00
testdata http: ServeFile to handle Range header for partial requests 2010-12-10 08:51:13 +11:00
chunked.go pkg: spelling tweaks, A-H 2011-05-18 13:14:56 -04:00
client_test.go http: Client.Do should follow redirects for GET and HEAD 2011-05-18 17:17:26 -07:00
client.go http: Client.Do should follow redirects for GET and HEAD 2011-05-18 17:17:26 -07:00
cookie_test.go http: add http.SetCookie(ResponseWriter, *Cookie) 2011-05-17 15:07:44 -07:00
cookie.go http: add http.SetCookie(ResponseWriter, *Cookie) 2011-05-17 15:07:44 -07:00
dump.go http: clarify docs on Request HTTP version 2011-04-21 19:57:19 -07:00
export_test.go http: handler timeout support 2011-04-15 12:53:32 -07:00
fs_test.go http: remove finalURL from Client.Get; move to Response 2011-05-13 07:31:24 -07:00
fs.go http: fix FileServer's default text content type 2011-04-22 09:09:37 -07:00
header_test.go http: add Header.Write method 2011-04-28 00:16:15 -07:00
header.go http: add Header.Write method 2011-04-28 00:16:15 -07:00
lex_test.go gofmt -s -w src misc 2010-10-22 10:06:33 -07:00
lex.go single argument panic 2010-03-30 10:34:57 -07:00
Makefile http: reverse proxy handler 2011-04-15 08:13:52 -07:00
persist.go pkg: spelling tweaks, A-H 2011-05-18 13:14:56 -04:00
proxy_test.go http: add Transport.ProxySelector 2011-05-18 09:23:29 -07:00
range_test.go httptest: introduce TempServer, clean up tests 2011-03-05 13:51:35 -08:00
readrequest_test.go http: use Header type consistently 2011-03-06 23:02:29 -05:00
request_test.go pkg: fix incorrect prints found by govet 2011-05-14 20:43:18 -07:00
request.go http: add Request.SetBasicAuth method 2011-05-13 15:43:46 -07:00
requestwrite_test.go http: add NewRequest helper 2011-04-14 20:36:52 -07:00
response_test.go pkg: fix incorrect prints found by govet 2011-05-14 20:43:18 -07:00
response.go http: remove finalURL from Client.Get; move to Response 2011-05-13 07:31:24 -07:00
responsewrite_test.go http: remove finalURL from Client.Get; move to Response 2011-05-13 07:31:24 -07:00
reverseproxy_test.go http: remove finalURL from Client.Get; move to Response 2011-05-13 07:31:24 -07:00
reverseproxy.go http: reverse proxy handler 2011-04-15 08:13:52 -07:00
serve_test.go pkg: spelling tweaks, A-H 2011-05-18 13:14:56 -04:00
server.go http: don't Clean query string in relative redirects 2011-05-11 04:30:05 -07:00
status.go http: revised http Handler interface 2010-09-29 14:30:12 +10:00
transfer.go http: remove finalURL from Client.Get; move to Response 2011-05-13 07:31:24 -07:00
transport_test.go http: add Transport.ProxySelector 2011-05-18 09:23:29 -07:00
transport.go http: add Transport.ProxySelector 2011-05-18 09:23:29 -07:00
triv.go http: make triv.go example compile again 2011-04-04 08:10:26 -07:00
url_test.go http: use upper case hex in URL escaping 2011-04-04 15:49:49 -04:00
url.go http: fix typo in URL.String doc comment. 2011-05-06 10:00:50 -07:00