Skip to content

Commit

Permalink
#23 force http_buid_query to use & separator
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZ99 committed Jan 26, 2018
1 parent 06c444f commit 8445133
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Management/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function managementApiCall($method = 'GET', $entryPoint = '', $params = n
$url = $this->baseManagementUrl.'/'.$entryPoint;

if(is_array($params) && sizeof($params) > 0){
$url .= '?'.http_build_query($params);
$url .= '?'.http_build_query($params, '', '&');
}

if (!in_array($method, array('POST', 'PUT', 'DELETE'))){
Expand Down
4 changes: 2 additions & 2 deletions src/Search/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private function getSearchUrl($entryPoint = 'search', $params = array()) {
$this->zone,
$this->apiVersion,
$entryPoint,
http_build_query($this->sanitize($params)));
http_build_query($this->sanitize($params), '', '&'));
}

private function addPrefix($value) {
Expand Down Expand Up @@ -444,7 +444,7 @@ public function toQuerystring($page = null){
$toParams[$this->paramsPrefix.'page'] = $page;
}

return http_build_query($toParams);
return http_build_query($toParams, '', '&');
}

/**
Expand Down

0 comments on commit 8445133

Please sign in to comment.