mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-01-06 20:15:50 +08:00
WebP判断内容长度时,忽略ChunkEncoding传输的内容
This commit is contained in:
@@ -75,8 +75,13 @@ func (this *WebPImageConfig) MatchResponse(mimeType string, contentLength int64,
|
||||
}
|
||||
}
|
||||
|
||||
// no content
|
||||
if contentLength == 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
// min length
|
||||
if this.minLength > 0 && contentLength < this.minLength {
|
||||
if this.minLength > 0 && contentLength >= 0 && contentLength < this.minLength {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user