diff options
Diffstat (limited to 'src/api/s3/get.rs')
-rw-r--r-- | src/api/s3/get.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/api/s3/get.rs b/src/api/s3/get.rs index 5e2a9830..65f6eacc 100644 --- a/src/api/s3/get.rs +++ b/src/api/s3/get.rs @@ -167,8 +167,7 @@ pub async fn handle_head( return Ok(cached); } - let (_enc, headers) = - EncryptionParams::check_decrypt_for_get(&garage, req, &version_meta.encryption)?; + let (_enc, headers) = EncryptionParams::check_decrypt(&garage, req, &version_meta.encryption)?; if let Some(pn) = part_number { match version_data { @@ -258,8 +257,7 @@ pub async fn handle_get( return Ok(cached); } - let (enc, headers) = - EncryptionParams::check_decrypt_for_get(&garage, req, &last_v_meta.encryption)?; + let (enc, headers) = EncryptionParams::check_decrypt(&garage, req, &last_v_meta.encryption)?; match (part_number, parse_range_header(req, last_v_meta.size)?) { (Some(_), Some(_)) => Err(Error::bad_request( |