From f87839999240a8fa9db5e98379a84220a2c8d690 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Fri, 5 Jul 2013 17:36:41 -0700 Subject: [PATCH] change redirect code for 307 to 302 to make go http client to redirect post --- handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index 7581eb8f2..0fb5fd159 100644 --- a/handlers.go +++ b/handlers.go @@ -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 }