mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-03-02 13:05:36 +08:00
内容压缩功能增加“例外URL“和“限制URL”设置
This commit is contained in:
@@ -619,12 +619,13 @@ func (this *HTTPWriter) PrepareCompression(resp *http.Response, size int64) {
|
||||
return
|
||||
}
|
||||
|
||||
// 分区内容不压缩,防止读取失败
|
||||
if !this.compressionConfig.EnablePartialContent && this.StatusCode() == http.StatusPartialContent {
|
||||
// 检查URL
|
||||
if !this.compressionConfig.MatchURL(this.req.URL()) {
|
||||
return
|
||||
}
|
||||
|
||||
if this.compressionConfig.Level < 0 {
|
||||
// 分区内容不压缩,防止读取失败
|
||||
if !this.compressionConfig.EnablePartialContent && this.StatusCode() == http.StatusPartialContent {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user