Add SkipClean() to *Route

This commit is contained in:
Jingwen Owen Ou
2016-05-02 10:24:47 -07:00
parent 9935257381
commit 05d9d908e7

View File

@@ -39,6 +39,10 @@ type Route struct {
buildVarsFunc BuildVarsFunc
}
func (r *Route) SkipClean() bool {
return r.skipClean
}
// Match matches the route against the request.
func (r *Route) Match(req *http.Request, match *RouteMatch) bool {
if r.buildOnly || r.err != nil {