ソースを参照

change 302 back to 307.

Xiang Li 13 年 前
コミット
8244113a3e
1 ファイル変更2 行追加1 行削除
  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
 		url := scheme + leaderClient() + path
 
 
 		debug("redirect to %s", url)
 		debug("redirect to %s", url)
-		http.Redirect(*w, req, url, http.StatusFound)
+		
+		http.Redirect(*w, req, url, http.StatusTemporaryRedirect)
 		return
 		return
 	}
 	}