]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: handle 3xx redirects properly
authorEmmanuel Odeke <emm.odeke@gmail.com>
Tue, 27 Sep 2016 03:38:57 +0000 (20:38 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 30 Oct 2016 02:17:28 +0000 (02:17 +0000)
commit7db996ee77b20b68ee583c65d59be1d81cef9090
tree5f2e18a3e4a6292d011c7ff3ab95f4735f1ba576
parentf030eb634f6c0e8de9cebd7fa7c2ac7890cabcc7
net/http: handle 3xx redirects properly

Provides redirection support for 307, 308 server statuses.
Provides redirection support for DELETE method.

Updates old tests that assumed all redirects were treated
the way 301, 302 and 303 are processed.

Fixes #9348
Fixes #10767
Fixes #13994

Change-Id: Iffa8dbe0ff28a1afa8da59869290ec805b1dd2c4
Reviewed-on: https://go-review.googlesource.com/29852
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/client.go
src/net/http/client_test.go