mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-25 14:36:34 +08:00
优化缓存读取性能
This commit is contained in:
@@ -249,7 +249,7 @@ func (this *HTTPRequest) doCacheRead() (shouldStop bool) {
|
||||
logs.Error(err)
|
||||
return true
|
||||
}
|
||||
} else {
|
||||
} else { // 没有Range
|
||||
this.writer.WriteHeader(reader.Status())
|
||||
|
||||
err = reader.ReadBody(buf, func(n int) (goNext bool, err error) {
|
||||
|
||||
Reference in New Issue
Block a user