mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 08:40:05 +08:00
manifest file also need to detect compression
fix https://github.com/chrislusf/seaweedfs/issues/1724#issuecomment-753585046
This commit is contained in:
@@ -193,9 +193,9 @@ func parseMultipart(r *http.Request, sizeLimit int64, pu *ParsedUpload) (e error
|
|||||||
mtype = contentType
|
mtype = contentType
|
||||||
}
|
}
|
||||||
|
|
||||||
pu.IsGzipped = part.Header.Get("Content-Encoding") == "gzip"
|
|
||||||
// pu.IsZstd = part.Header.Get("Content-Encoding") == "zstd"
|
|
||||||
}
|
}
|
||||||
|
pu.IsGzipped = part.Header.Get("Content-Encoding") == "gzip"
|
||||||
|
// pu.IsZstd = part.Header.Get("Content-Encoding") == "zstd"
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user