Update context.go

This commit is contained in:
Bo-Yi Wu 2024-03-05 21:57:57 +08:00 committed by GitHub
parent 5e86e04533
commit 3166ecd39f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,7 +120,7 @@ func (c *Context) Copy() *Context {
cp.Writer = &cp.writermem cp.Writer = &cp.writermem
cp.index = abortIndex cp.index = abortIndex
cp.handlers = nil cp.handlers = nil
cp.fullPath = c.fullPath cp.fullPath = c.fullPath
cKeys := c.Keys cKeys := c.Keys
cp.Keys = make(map[string]any, len(cKeys)) cp.Keys = make(map[string]any, len(cKeys))