From c4018f79038e8e63fc75e22e1ae52ef292d3f263 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 30 Jun 2015 09:50:35 +0800 Subject: [PATCH] Index 302 redirect --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 9c13a7c..95d456d 100644 --- a/main.go +++ b/main.go @@ -191,7 +191,7 @@ func main() { // indexHandler handles request of Wide index. func indexHandler(w http.ResponseWriter, r *http.Request) { if "/" != r.RequestURI { - http.NotFound(w, r) + http.Redirect(w, r, "/", http.StatusFound) return }