From b9ce2cfbad4c44d5ee1baa4c6761997b1b0e1415 Mon Sep 17 00:00:00 2001 From: John Lauck Date: Wed, 18 Oct 2017 10:20:32 -0400 Subject: [PATCH] Encode ',' in path before signing --- AWSSignature4DynamicValue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AWSSignature4DynamicValue.js b/AWSSignature4DynamicValue.js index 4a730f0..ed43cce 100644 --- a/AWSSignature4DynamicValue.js +++ b/AWSSignature4DynamicValue.js @@ -232,7 +232,7 @@ var AWSSignature4DynamicValue = function() { // Step 1 var canonical = request.method + '\n' + - uri.pathname + '\n' + + uri.pathname.replace(',', '%2C') + '\n' + getParametersString(request, uri.search) + '\n' + canonicalHeaders.join('\n') + '\n' + '\n' +