change redirect code for 307 to 302 to make go http client to redirect post
parent
93c96b3813
commit
f878399992
|
@ -191,7 +191,7 @@ func excute(c Command, w *http.ResponseWriter, req *http.Request) {
|
||||||
url := scheme + leaderClient() + path
|
url := scheme + leaderClient() + path
|
||||||
|
|
||||||
debug("redirect to %s", url)
|
debug("redirect to %s", url)
|
||||||
http.Redirect(*w, req, url, http.StatusTemporaryRedirect)
|
http.Redirect(*w, req, url, http.StatusFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue