mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-07-28 16:58:56 +00:00
Remove STREAMING-AWS4-HMAC-SHA256-PAYLOAD (see #64)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user