Index 302 redirect

This commit is contained in:
Liang Ding 2015-06-30 09:50:35 +08:00
parent 8ecd8eb2fc
commit c4018f7903
1 changed files with 1 additions and 1 deletions

View File

@ -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
}