Explorar o código

change 302 back to 307.

Xiang Li %!s(int64=12) %!d(string=hai) anos
pai
achega
8244113a3e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      handlers.go

+ 2 - 1
handlers.go

@@ -191,7 +191,8 @@ 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.StatusFound)
+		
+		http.Redirect(*w, req, url, http.StatusTemporaryRedirect)
 		return
 	}