aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3_get.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-07-15 15:31:13 +0200
committerAlex Auvolat <alex@adnab.me>2020-07-15 15:31:13 +0200
commit1c70552f959229195cba250039900fddd77284f3 (patch)
tree321ba3583cdd4d0fe6e3465cdca5170ad8e93e83 /src/api/s3_get.rs
parent6c7f9704eabad3f19e426371b21f174f7e1dc2cf (diff)
downloadgarage-1c70552f959229195cba250039900fddd77284f3.tar.gz
garage-1c70552f959229195cba250039900fddd77284f3.zip
Validate content MD5 and SHA256 sums for PutObject and UploadPart
Diffstat (limited to 'src/api/s3_get.rs')
-rw-r--r--src/api/s3_get.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/s3_get.rs b/src/api/s3_get.rs
index 77939342..68558dbe 100644
--- a/src/api/s3_get.rs
+++ b/src/api/s3_get.rs
@@ -29,11 +29,11 @@ fn object_headers(
.header("Last-Modified", date_str)
.header("Accept-Ranges", format!("bytes"));
- for (k, v) in version_meta.headers.other.iter() {
- resp = resp.header(k, v.to_string());
- }
+ for (k, v) in version_meta.headers.other.iter() {
+ resp = resp.header(k, v.to_string());
+ }
- resp
+ resp
}
pub async fn handle_head(