缓存内容也支持压缩

This commit is contained in:
GoEdgeLab
2021-10-01 16:24:29 +08:00
parent 300c11041f
commit 42f8c93e76

View File

@@ -348,6 +348,8 @@ func (this *HTTPRequest) doCacheRead() (shouldStop bool) {
return true
}
} else { // 没有Range
this.writer.PrepareCompression(reader.BodySize())
this.writer.WriteHeader(reader.Status())
err = reader.ReadBody(buf, func(n int) (goNext bool, err error) {