Skip to content

Commit

Permalink
Fixed an issue with how SignatureV4 handles query parameters with a v…
Browse files Browse the repository at this point in the history
…alue of zero.
  • Loading branch information
jeremeamia committed Aug 18, 2014
1 parent b70825e commit 00c4d18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Aws/Common/Signature/SignatureV4.php
Expand Up @@ -394,6 +394,8 @@ private function getCanonicalizedQueryString(RequestInterface $request)
foreach ($queryParams as $key => $values) {
if (is_array($values)) {
sort($values);
} elseif ($values === 0) {
$values = array('0');
} elseif (!$values) {
$values = array('');
}
Expand Down

0 comments on commit 00c4d18

Please sign in to comment.