修复源站主动关闭连接时无法缓存内容的Bug

This commit is contained in:
刘祥超
2021-12-05 16:55:33 +08:00
parent 2ac26f6aa4
commit 04a327ce9a

View File

@@ -306,7 +306,7 @@ func (this *HTTPRequest) doReverseProxy() {
} }
// 是否成功结束 // 是否成功结束
if err == nil && closeErr == nil { if (err == nil || err == io.EOF) && (closeErr == nil || closeErr == io.EOF) {
this.writer.SetOk() this.writer.SetOk()
} }
} }