aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-05-03 17:30:40 +0200
committerAlex Auvolat <alex@adnab.me>2021-05-03 17:30:40 +0200
commitee2a3d363b70ca9e7572c30ca9547f7fd7f8f608 (patch)
treeb8f799f19a31c51514bf010a3e3c68f6d1630cc4
parent575726358c72772b7be00d0f8eaff76506118f7a (diff)
downloadgarage-ee2a3d363b70ca9e7572c30ca9547f7fd7f8f608.tar.gz
garage-ee2a3d363b70ca9e7572c30ca9547f7fd7f8f608.zip
Remove STREAMING-AWS4-HMAC-SHA256-PAYLOAD (see #64)
-rw-r--r--src/api/signature.rs4
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)