]> Cypherpunks repositories - gostls13.git/commit
net/http: extra documentation for Redirect and RedirectHandler
authorTaru Karttunen <taruti@taruti.net>
Fri, 16 Oct 2015 10:26:20 +0000 (13:26 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 29 Oct 2015 19:52:45 +0000 (19:52 +0000)
commit2dedb971e3432e530701a9e1d08c8c26658c1e49
tree65c29ad4425e748421e39c70e6c06e6bec727b6c
parent6f8a66536b04885d5e5e8480e64bea9c0b417dce
net/http: extra documentation for Redirect and RedirectHandler

Errors with http.Redirect and http.StatusOk seem
to occur from time to time on the irc channel.
This change adds documentation suggesting
to use one of the 3xx codes and not StatusOk
with Redirect.

Change-Id: I6b900a8eb868265fbbb846ee6a53e426d90a727d
Reviewed-on: https://go-review.googlesource.com/15980
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/server.go