Browse Source

Add `SkipClean()` to `*Route`

pull/154/head
Jingwen Owen Ou 10 years ago
parent
commit
05d9d908e7
  1. 4
      route.go

4
route.go

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

Loading…
Cancel
Save