change redirect code for 307 to 302 to make go http client to redirect post

release-0.4
Xiang Li 2013-07-05 17:36:41 -07:00
parent 93c96b3813
commit f878399992
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ func excute(c Command, w *http.ResponseWriter, req *http.Request) {
url := scheme + leaderClient() + path
debug("redirect to %s", url)
http.Redirect(*w, req, url, http.StatusTemporaryRedirect)
http.Redirect(*w, req, url, http.StatusFound)
return
}