Fix tests

This commit is contained in:
Nikolay Tolkachov 2018-06-12 14:58:03 +03:00
parent 6b246c7fe0
commit 5fcd2a92da

2
gin.go
View File

@ -152,7 +152,7 @@ func Default() *Engine {
}
func (engine *Engine) allocateContext() *Context {
return &Context{engine: engine}
return &Context{engine: engine, KeysMutex: &sync.RWMutex{}}
}
func (engine *Engine) Delims(left, right string) *Engine {