mirror of
https://github.com/astaxie/beego.git
synced 2025-06-11 04:40:39 +00:00
cache, context, session: add lock to fix inconsistent field protection
This commit is contained in:
@ -71,7 +71,9 @@ func (input *BeegoInput) Reset(ctx *Context) {
|
||||
input.CruSession = nil
|
||||
input.pnames = input.pnames[:0]
|
||||
input.pvalues = input.pvalues[:0]
|
||||
input.dataLock.Lock()
|
||||
input.data = nil
|
||||
input.dataLock.Unlock()
|
||||
input.RequestBody = []byte{}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user