mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-08 22:33:22 +00:00
Content encoding (#1089)
Signed-off-by: Jörg Thalheim <joerg@thalheim.io> Co-authored-by: loverustfs <hello@rustfs.com>
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user