]> Cypherpunks repositories - gostls13.git/commit
cgi: improve Location response handling
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 27 Apr 2011 21:07:13 +0000 (14:07 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 27 Apr 2011 21:07:13 +0000 (14:07 -0700)
commitb477a79c4e67e90e828cdf3e82fad5bac644a85c
tree57295488ce2f29c7ef2e878bbfc1b14ace74defd
parentaee6b1160e790b098b3aaac317a9a373058e871d
cgi: improve Location response handling

Add local URI path support, which isn't as fringe
as I originally thought. (it's supported by Apache)

Send an implicit 302 status on redirects (not 200).

Fixes #1597

R=rsc, r
CC=golang-dev
https://golang.org/cl/4442089
src/pkg/http/cgi/host.go
src/pkg/http/cgi/host_test.go
src/pkg/http/cgi/testdata/test.cgi