Browse Source

Minor fixup

Carl Jackson 11 years ago
parent
commit
1bea1bd204
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      web/router.go

+ 1
- 2
web/router.go View File

@ -227,8 +227,7 @@ func (rt *router) route(c *C, w http.ResponseWriter, r *http.Request) {
}
func (rt *router) handleUntyped(p interface{}, m method, h interface{}) {
pat := parsePattern(p)
rt.handle(pat, m, parseHandler(h))
rt.handle(parsePattern(p), m, parseHandler(h))
}
func (rt *router) handle(p Pattern, m method, h Handler) {


Loading…
Cancel
Save