mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-10 04:20:27 +08:00
默认情况下内容压缩不支持Partial Content
This commit is contained in:
@@ -584,6 +584,11 @@ func (this *HTTPWriter) PrepareCompression(resp *http.Response, size int64) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 分区内容不压缩,防止读取失败
|
||||||
|
if !this.compressionConfig.EnablePartialContent && this.StatusCode() == http.StatusPartialContent {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if this.compressionConfig.Level <= 0 {
|
if this.compressionConfig.Level <= 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user