aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)