删除Partial缓存时,同时删除区间范围相关文件

This commit is contained in:
GoEdgeLab
2022-03-04 11:51:59 +08:00
parent 619407f9e4
commit c63840427d
10 changed files with 85 additions and 64 deletions

View File

@@ -284,8 +284,8 @@ func (this *HTTPRequest) doReverseProxy() {
}
// 输出到客户端
pool := this.bytePool(resp.ContentLength)
buf := pool.Get()
var pool = this.bytePool(resp.ContentLength)
var buf = pool.Get()
if shouldAutoFlush {
for {
n, readErr := resp.Body.Read(buf)