mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-12 14:30:54 +08:00
修复缓存状态码不生效的问题
This commit is contained in:
@@ -296,7 +296,7 @@ func (this *HTTPRequest) doRoot() (isBreak bool) {
|
||||
this.cacheRef = nil // 不支持缓存
|
||||
}
|
||||
|
||||
this.writer.Prepare(fileSize)
|
||||
this.writer.Prepare(fileSize, http.StatusOK)
|
||||
|
||||
pool := this.bytePool(fileSize)
|
||||
buf := pool.Get()
|
||||
|
||||
Reference in New Issue
Block a user