Update context.go

This commit is contained in:
Raphael Gavache 2017-07-14 14:39:49 -04:00 committed by GitHub
parent 5cb25a6410
commit 8b725362ca

View File

@ -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
} }