mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
Merge pull request #1146 from Slamper/patch-1
Fix cache corruption due to recorder reuse Former-commit-id: e010b13230f93e0dab208bc1558aca094efc1667
This commit is contained in:
commit
5f1dd78a12
3
cache/entry/entry.go
vendored
3
cache/entry/entry.go
vendored
|
@ -115,7 +115,8 @@ func (e *Entry) Reset(statusCode int, headers map[string][]string,
|
||||||
e.response.headers = newHeaders
|
e.response.headers = newHeaders
|
||||||
}
|
}
|
||||||
|
|
||||||
e.response.body = body
|
e.response.body = make([]byte,len(body))
|
||||||
|
copy(e.response.body, body)
|
||||||
// check if a given life changer provided
|
// check if a given life changer provided
|
||||||
// and if it does then execute the change life time
|
// and if it does then execute the change life time
|
||||||
if lifeChanger != nil {
|
if lifeChanger != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user