Skip to content

Commit

Permalink
Fixes - husobee#83
Browse files Browse the repository at this point in the history
Middleware Chains - Nil pointer dereference husobee#83
  • Loading branch information
tw1nk authored Nov 27, 2018
1 parent 93943af commit 9a8a741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,5 +482,5 @@ func buildChain(f http.HandlerFunc, m ...Middleware) http.HandlerFunc {
return f
}
// otherwise nest the handlerfuncs
return m[0](buildChain(f, m[1:cap(m)]...))
return m[0](buildChain(f, m[1:len(m)]...))
}

0 comments on commit 9a8a741

Please sign in to comment.