Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
fix: not to use cap of slice (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranc1ngpegasus authored Nov 8, 2022
1 parent 7e44dba commit ea38a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middlechain.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ func Chain(h http.Handler, m ...func(http.Handler) http.Handler) http.Handler {
return h
}

return m[0](Chain(h, m[1:cap(m)]...))
return m[0](Chain(h, m[1:]...))
}

0 comments on commit ea38a09

Please sign in to comment.