Propagate StrictSlash to subrouters instead of rudely turning it off

This commit is contained in:
Thomas ten Cate
2014-04-23 19:53:35 +02:00
parent 3509745ae8
commit b864f07c53
4 changed files with 24 additions and 11 deletions

View File

@@ -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
}