Skip to content

Commit e7b32f7

Browse files
committed
#### Version 1.4.9.4
* 调整: dotweb.Classic移除自动UseRequestLog逻辑 * 调整:Session Redis模式时,当解析map失败时仅标准输出提示,不暴露该异常 * 状态页:访问/dotweb/state时增加CurrentTime字段输出 * BUG: 修正Reponse自动释放时未重置body字段,导致内存溢出BUG * 2018-05-10 13:30
1 parent 896bf50 commit e7b32f7

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎response.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ func (r *Response) reset(w http.ResponseWriter) {
129129
r.header = w.Header()
130130
r.Status = http.StatusOK
131131
r.Size = 0
132+
r.body = nil
132133
r.committed = false
133134
}
134135

@@ -138,6 +139,7 @@ func (r *Response) release() {
138139
r.header = nil
139140
r.Status = http.StatusOK
140141
r.Size = 0
142+
r.body = nil
141143
r.committed = false
142144
}
143145

‎version.MD‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* 调整: dotweb.Classic移除自动UseRequestLog逻辑
66
* 调整:Session Redis模式时,当解析map失败时仅标准输出提示,不暴露该异常
77
* 状态页:访问/dotweb/state时增加CurrentTime字段输出
8+
* BUG: 修正Reponse自动释放时未重置body字段,导致内存溢出BUG
89
* 2018-05-10 13:30
910

1011
#### Version 1.4.9.3

0 commit comments

Comments
 (0)