Index 302 redirect
This commit is contained in:
parent
8ecd8eb2fc
commit
c4018f7903
2
main.go
2
main.go
|
@ -191,7 +191,7 @@ func main() {
|
||||||
// indexHandler handles request of Wide index.
|
// indexHandler handles request of Wide index.
|
||||||
func indexHandler(w http.ResponseWriter, r *http.Request) {
|
func indexHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
if "/" != r.RequestURI {
|
if "/" != r.RequestURI {
|
||||||
http.NotFound(w, r)
|
http.Redirect(w, r, "/", http.StatusFound)
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue