提交 55e6298f 编写于 作者: P playHing

Fix concurrent form parsing and getting

上级 b50fb449
......@@ -333,7 +333,11 @@ func (input *BeegoInput) Query(key string) string {
return val
}
if input.Context.Request.Form == nil {
input.Context.Request.ParseForm()
input.dataLock.Lock()
defer input.dataLock.Unlock()
if input.Context.Request.Form == nil {
input.Context.Request.ParseForm()
}
}
return input.Context.Request.Form.Get(key)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册