Add quotes in returned etags

This commit is contained in:
Alex Auvolat
2022-01-12 11:41:20 +01:00
parent 1ee8f596ee
commit f7349f4005
4 changed files with 45 additions and 53 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ pub async fn handle_list(
key: uriencode_maybe(key, query.common.urlencode_resp),
last_modified: s3_xml::Value(msec_to_rfc3339(info.last_modified)),
size: s3_xml::IntValue(info.size as i64),
etag: s3_xml::Value(info.etag.to_string()),
etag: s3_xml::Value(format!("\"{}\"", info.etag.to_string())),
storage_class: s3_xml::Value("STANDARD".to_string()),
})
.collect(),