]> Cypherpunks repositories - gostls13.git/commit
Allow http.Redirect to do both temporary (307) and permanent (301) redirects.
authorDavid Symonds <dsymonds@golang.org>
Tue, 12 May 2009 22:41:19 +0000 (15:41 -0700)
committerDavid Symonds <dsymonds@golang.org>
Tue, 12 May 2009 22:41:19 +0000 (15:41 -0700)
commit6c384d22688772c4be8aac10841aa6c64b3de2e6
treece597fec70003b465e6615f1f2b188569c7a0c8a
parenta8f6e38bce5d5b83474a6903c40473dc5855037b
Allow http.Redirect to do both temporary (307) and permanent (301) redirects.
This also adds a missing 'return' when a malformed URL is passed to it.

R=rsc
APPROVED=rsc
DELTA=30  (13 added, 2 deleted, 15 changed)
OCL=28598
CL=28710
src/lib/http/fs.go
src/lib/http/server.go
usr/gri/pretty/godoc.go