Browse Source

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

Xiang Li 12 years ago
parent
commit
f878399992
1 changed files with 1 additions and 1 deletions
  1. 1 1
      handlers.go

+ 1 - 1
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
 	}