mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-31 02:26:36 +08:00
修复内容为空时无法缓存的Bug
This commit is contained in:
@@ -836,7 +836,7 @@ func (this *HTTPWriter) HeaderData() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
resp := &http.Response{}
|
||||
var resp = &http.Response{}
|
||||
resp.Header = this.Header()
|
||||
if this.statusCode == 0 {
|
||||
this.statusCode = http.StatusOK
|
||||
|
||||
Reference in New Issue
Block a user