aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3_list.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-01-12 11:41:20 +0100
committerAlex Auvolat <alex@adnab.me>2022-01-13 14:03:33 +0100
commitf7349f40050dfb5dc4f4f49df5732686c8d846ba (patch)
treed471d9968dbbe1823198443ee3c81834083b886c /src/api/s3_list.rs
parent1ee8f596ee6792b987b07dc08617feb4a3480c1a (diff)
downloadgarage-f7349f40050dfb5dc4f4f49df5732686c8d846ba.tar.gz
garage-f7349f40050dfb5dc4f4f49df5732686c8d846ba.zip
Add quotes in returned etagsimprove-copies
Diffstat (limited to 'src/api/s3_list.rs')
-rw-r--r--src/api/s3_list.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/s3_list.rs b/src/api/s3_list.rs
index ddc03375..f991b07d 100644
--- a/src/api/s3_list.rs
+++ b/src/api/s3_list.rs
@@ -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(),