diff options
author | Alex Auvolat <alex@adnab.me> | 2020-07-15 15:31:13 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-07-15 15:31:13 +0200 |
commit | 1c70552f959229195cba250039900fddd77284f3 (patch) | |
tree | 321ba3583cdd4d0fe6e3465cdca5170ad8e93e83 /src/api/s3_get.rs | |
parent | 6c7f9704eabad3f19e426371b21f174f7e1dc2cf (diff) | |
download | garage-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.rs | 8 |
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( |