Skip to content

Commit

Permalink
Fixed - added missing ksort to query element
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed Feb 13, 2023
1 parent 769a41f commit bab350d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/AmazonPHP/SellingPartner/HttpSignatureHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public static function forConfig(
. "\n" . $signedHeadersStr
. "\n" . $hashedPayload;

\dump($canonicalString);
//Prepare the string to sign
$stringToSign = $algorithm . "\n"
. $amzdate . "\n"
Expand Down Expand Up @@ -302,6 +303,8 @@ public static function parseUrl(string $str, $urlEncoding = true) : array
}
}

\ksort($result);

return $result;
}

Expand Down

0 comments on commit bab350d

Please sign in to comment.