diff --git a/src/services/oss/dir_stream.rs b/src/services/oss/dir_stream.rs index 6328c666bfc9..4d809fa27fb8 100644 --- a/src/services/oss/dir_stream.rs +++ b/src/services/oss/dir_stream.rs @@ -107,7 +107,7 @@ impl output::Page for DirStream { if object.key.ends_with('/') { continue; } - let mut meta = ObjectMetadata::new(ObjectMode::FILE); + let mut meta = ObjectMetadata::new(ObjectMode::FILE).with_complete(); meta.set_etag(&object.etag); meta.set_content_length(object.size); diff --git a/src/services/s3/dir_stream.rs b/src/services/s3/dir_stream.rs index 3f2bf30e01c4..7aa6eaa60fd3 100644 --- a/src/services/s3/dir_stream.rs +++ b/src/services/s3/dir_stream.rs @@ -116,7 +116,7 @@ impl output::Page for DirStream { continue; } - let mut meta = ObjectMetadata::new(ObjectMode::FILE); + let mut meta = ObjectMetadata::new(ObjectMode::FILE).with_complete(); meta.set_etag(&object.etag); meta.set_content_md5(object.etag.trim_matches('"'));