mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-24 02:32:17 +08:00
Update context.go
This commit is contained in:
parent
5cb25a6410
commit
8b725362ca
@ -82,6 +82,10 @@ 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.Keys = map[string]interface{}{}
|
||||||
|
for k, v := range c.Keys {
|
||||||
|
cp.Keys[k] = v
|
||||||
|
}
|
||||||
return &cp
|
return &cp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user