Browse Source

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

pull/415/head
Nguyen Ngoc Trung (Steven) 7 years ago committed by Kamil Kisiel
parent
commit
521ea7b17d
  1. 2
      regexp.go

2
regexp.go

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

Loading…
Cancel
Save