Skip to content

Commit ed61678

Browse files
committed
Build URL with multiple instances of the same param
1 parent 1cf7f4d commit ed61678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ private function buildUrl($queryParams = null)
352352
{
353353
$path = '/' . implode('/', $this->path);
354354
if (isset($queryParams)) {
355-
$path .= '?' . http_build_query($queryParams);
355+
$path .= '?' . preg_replace('/%5B(?:\d|[1-9]\d+)%5D=/', '=', http_build_query($queryParams));
356356
}
357357

358358
return sprintf('%s%s%s', $this->host, $this->version ?: '', $path);

0 commit comments

Comments
 (0)