mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-20 08:12:16 +08:00
Fix tests
This commit is contained in:
parent
6b246c7fe0
commit
5fcd2a92da
2
gin.go
2
gin.go
@ -152,7 +152,7 @@ func Default() *Engine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (engine *Engine) allocateContext() *Context {
|
func (engine *Engine) allocateContext() *Context {
|
||||||
return &Context{engine: engine}
|
return &Context{engine: engine, KeysMutex: &sync.RWMutex{}}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (engine *Engine) Delims(left, right string) *Engine {
|
func (engine *Engine) Delims(left, right string) *Engine {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user