mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-26 23:16:35 +08:00
写缓存失败时,允许继续读取源站内容
This commit is contained in:
@@ -494,7 +494,7 @@ func (this *HTTPWriter) PrepareCache(resp *http.Response, size int64) {
|
||||
return
|
||||
}
|
||||
|
||||
var cacheReader = readers.NewTeeReaderCloser(resp.Body, this.cacheWriter)
|
||||
var cacheReader = readers.NewTeeReaderCloser(resp.Body, this.cacheWriter, false)
|
||||
resp.Body = cacheReader
|
||||
this.rawReader = cacheReader
|
||||
|
||||
|
||||
Reference in New Issue
Block a user