Skip to content

Commit

Permalink
URL encode the uri part of the stringToSign
Browse files Browse the repository at this point in the history
  • Loading branch information
rafou committed Sep 3, 2019
1 parent 4241c40 commit 19522b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ function getStringToSign(canonicalRequest) {
...canonicalRequest.amzHeaders,
canonicalRequest.querystring
? `${canonicalRequest.uri}?${canonicalRequest.querystring}`
: canonicalRequest.uri,
: encodeURI(canonicalRequest.uri)
].join('\n');
}

Expand Down

0 comments on commit 19522b9

Please sign in to comment.