diff --git a/src/Escher.php b/src/Escher.php index 0a07864..374caf7 100644 --- a/src/Escher.php +++ b/src/Escher.php @@ -716,10 +716,10 @@ private function stripAuthParams(EscherRequestHelper $helper, $vendorKey) $query = array(); foreach ($params as $key => $value) { if ($key != 'X-' . $vendorKey . '-Signature') { - $query[] = $key . '=' . $value; + $query[$key] = $value; } } - return "{$parts['scheme']}://{$parts['host']}{$parts['path']}" . (empty($query) ? '' : '?' . implode('&', $query)); + return "{$parts['scheme']}://{$parts['host']}{$parts['path']}" . (empty($query) ? '' : '?' . http_build_query($query)); } private function getExpires()