detect more gzippable content

This commit is contained in:
Chris Lu
2018-12-22 15:05:31 -08:00
parent 49f40cd145
commit c043fd17cb
2 changed files with 26 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ func parseMultipart(r *http.Request) (
originalDataSize = len(unzipped)
}
isGzipped = true
} else if operation.IsGzippable(ext, mtype) {
} else if operation.IsGzippable(ext, mtype, data) {
if data, e = operation.GzipData(data); e != nil {
return
}