diff options
author | Alex Auvolat <alex@adnab.me> | 2021-05-03 17:30:40 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-05-03 17:30:40 +0200 |
commit | ee2a3d363b70ca9e7572c30ca9547f7fd7f8f608 (patch) | |
tree | b8f799f19a31c51514bf010a3e3c68f6d1630cc4 | |
parent | 575726358c72772b7be00d0f8eaff76506118f7a (diff) | |
download | garage-ee2a3d363b70ca9e7572c30ca9547f7fd7f8f608.tar.gz garage-ee2a3d363b70ca9e7572c30ca9547f7fd7f8f608.zip |
Remove STREAMING-AWS4-HMAC-SHA256-PAYLOAD (see #64)
-rw-r--r-- | src/api/signature.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/signature.rs b/src/api/signature.rs index 7fcab0f9..030c6dd5 100644 --- a/src/api/signature.rs +++ b/src/api/signature.rs @@ -98,9 +98,7 @@ pub async fn check_signature( return Err(Error::Forbidden(format!("Invalid signature"))); } - let content_sha256 = if authorization.content_sha256 == "UNSIGNED-PAYLOAD" - || authorization.content_sha256 == "STREAMING-AWS4-HMAC-SHA256-PAYLOAD" - { + let content_sha256 = if authorization.content_sha256 == "UNSIGNED-PAYLOAD" { None } else { let bytes = hex::decode(authorization.content_sha256) |