Remove STREAMING-AWS4-HMAC-SHA256-PAYLOAD (see #64)
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Alex 2021-05-03 17:30:40 +02:00
parent 575726358c
commit ee2a3d363b
No known key found for this signature in database
GPG Key ID: EDABF9711E244EB1
1 changed files with 1 additions and 3 deletions

View File

@ -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)