Propagate StrictSlash to subrouters instead of rudely turning it off
This commit is contained in:
1
route.go
1
route.go
@@ -294,7 +294,6 @@ func (r *Route) Path(tpl string) *Route {
|
||||
// Also note that the setting of Router.StrictSlash() has no effect on routes
|
||||
// with a PathPrefix matcher.
|
||||
func (r *Route) PathPrefix(tpl string) *Route {
|
||||
r.strictSlash = false
|
||||
r.err = r.addRegexpMatcher(tpl, false, true)
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user