From ee2a3d363b70ca9e7572c30ca9547f7fd7f8f608 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 3 May 2021 17:30:40 +0200 Subject: Remove STREAMING-AWS4-HMAC-SHA256-PAYLOAD (see #64) --- src/api/signature.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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) -- cgit v1.2.3