Skip to content

Commit

Permalink
reset methodsAllowed on contexts in sync pool
Browse files Browse the repository at this point in the history
  • Loading branch information
pkieltyka committed Dec 20, 2023
1 parent 2452954 commit 9dd8b4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (x *Context) Reset() {
x.routeParams.Keys = x.routeParams.Keys[:0]
x.routeParams.Values = x.routeParams.Values[:0]
x.methodNotAllowed = false
x.methodsAllowed = x.methodsAllowed[:0]
x.parentCtx = nil
}

Expand Down

0 comments on commit 9dd8b4a

Please sign in to comment.