Skip to content

Commit

Permalink
Use constant for 301 status code in regexp.go (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
trungnn authored and kisielk committed Oct 24, 2018
1 parent deb579d commit 521ea7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regexp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 521ea7b

Please sign in to comment.