Use constant for 301 status code in regexp.go (#412)

This commit is contained in:
Nguyen Ngoc Trung (Steven)
2018-10-23 19:08:00 -07:00
committed by Kamil Kisiel
parent deb579d6e0
commit 521ea7b17d

View File

@@ -296,7 +296,7 @@ func (v *routeRegexpGroup) setMatch(req *http.Request, m *RouteMatch, r *Route)
} else { } else {
u.Path += "/" u.Path += "/"
} }
m.Handler = http.RedirectHandler(u.String(), 301) m.Handler = http.RedirectHandler(u.String(), http.StatusMovedPermanently)
} }
} }
} }