Skip to content

Commit

Permalink
Merge pull request #2 from krzych82/bugfix/signature-base
Browse files Browse the repository at this point in the history
Signature base for some special characters (eg. +)
  • Loading branch information
piotrkochan authored Oct 1, 2018
2 parents 73637a7 + 39e989a commit 7f55789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hmac/RequestSigner.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public function __construct(Credentials $credentials)
public function signRequest(RequestInterface $request)
{
$requestParameters = [];
parse_str(urldecode($request->getBody()->__toString()), $requestParameters);

parse_str(rawurldecode(rawurlencode($request->getBody()->__toString())), $requestParameters);
$credentialsParameters = [
'Token' => $this->credentials->getToken(),
'ApiSignature' => $this->getSignature(
Expand Down

0 comments on commit 7f55789

Please sign in to comment.