Skip to content

Commit

Permalink
Fix ServeHTTP
Browse files Browse the repository at this point in the history
forgot a return
  • Loading branch information
julienschmidt committed Jun 6, 2014
1 parent 55e37c2 commit c620735
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions router.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) {

if handle, vars, tsr := r.getValue(req.Method, path); handle != nil {
handle(w, req, vars)
return
} else if tsr && r.RedirectTrailingSlash && path != "/" {
if path[len(path)-1] == '/' {
path = path[:len(path)-1]
Expand Down

0 comments on commit c620735

Please sign in to comment.