Skip to content

Commit 1f7b118

Browse files
committed
Fix URL building
1 parent 5b29f82 commit 1f7b118

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Client.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,10 @@ public function setRegion($regionCode)
193193
*/
194194
protected function buildUrl($url, $query = [])
195195
{
196-
$url = explode('?', $url, 1);
196+
$url = explode('?', $url, 2);
197197
if (count($url) == 2) {
198-
$query = array_merge($url[1], $query);
198+
parse_str($url[1], $query0);
199+
$query = array_merge($query0, $query);
199200
}
200201
$query['apikey'] = $this->key;
201202

0 commit comments

Comments
 (0)