Content encoding (#1089)

Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
Co-authored-by: loverustfs <hello@rustfs.com>
This commit is contained in:
Jörg Thalheim
2025-12-10 08:21:51 +01:00
committed by GitHub
parent ac0c34e734
commit 2c86fe30ec
3 changed files with 91 additions and 0 deletions
+2
View File
@@ -2272,6 +2272,7 @@ impl S3 for FS {
content_length: Some(response_content_length),
last_modified,
content_type,
content_encoding: info.content_encoding.clone(),
accept_ranges: Some("bytes".to_string()),
content_range,
e_tag: info.etag.map(|etag| to_s3s_etag(&etag)),
@@ -2487,6 +2488,7 @@ impl S3 for FS {
let output = HeadObjectOutput {
content_length: Some(content_length),
content_type,
content_encoding: info.content_encoding.clone(),
last_modified,
e_tag: info.etag.map(|etag| to_s3s_etag(&etag)),
metadata: filter_object_metadata(&metadata_map),