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

Commit ea38a09

Browse files
fix: not to use cap of slice (#7)
1 parent 7e44dba commit ea38a09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middlechain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ func Chain(h http.Handler, m ...func(http.Handler) http.Handler) http.Handler {
99
return h
1010
}
1111

12-
return m[0](Chain(h, m[1:cap(m)]...))
12+
return m[0](Chain(h, m[1:]...))
1313
}

0 commit comments

Comments
 (0)