From dc6f2c7049c6e91bd2eae8eae9ec6f8a0a0984b4 Mon Sep 17 00:00:00 2001 From: VerTiGoEtrex <2846960+VerTiGoEtrex@users.noreply.github.com> Date: Sun, 25 Jun 2023 13:44:28 -0700 Subject: [PATCH] Remove double-encode of request URI when generating signature --- shared_aws_api/lib/src/protocol/_sign.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared_aws_api/lib/src/protocol/_sign.dart b/shared_aws_api/lib/src/protocol/_sign.dart index 7ed7c212d..f323241bd 100644 --- a/shared_aws_api/lib/src/protocol/_sign.dart +++ b/shared_aws_api/lib/src/protocol/_sign.dart @@ -34,7 +34,7 @@ void signAws4HmacSha256({ final payloadHash = sha256.convert(rq.bodyBytes).toString(); final canonical = [ rq.method.toUpperCase(), - Uri.encodeFull(rq.url.path), + rq.url.path, canonicalQueryParametersAll(rq.url.queryParametersAll), ...canonicalHeaders, '',