Skip to content

Commit 9dd8b4a

Browse files
committed
reset methodsAllowed on contexts in sync pool
1 parent 2452954 commit 9dd8b4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

context.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ func (x *Context) Reset() {
9292
x.routeParams.Keys = x.routeParams.Keys[:0]
9393
x.routeParams.Values = x.routeParams.Values[:0]
9494
x.methodNotAllowed = false
95+
x.methodsAllowed = x.methodsAllowed[:0]
9596
x.parentCtx = nil
9697
}
9798

0 commit comments

Comments
 (0)