内容压缩级别允许为0

This commit is contained in:
刘祥超
2023-12-05 10:48:17 +08:00
parent 3a15408c98
commit e367814db3
3 changed files with 23 additions and 1 deletions

View File

@@ -622,7 +622,7 @@ func (this *HTTPWriter) PrepareCompression(resp *http.Response, size int64) {
return
}
if this.compressionConfig.Level <= 0 {
if this.compressionConfig.Level < 0 {
return
}