Skip to content

Commit

Permalink
Build HTTP queries with '&'
Browse files Browse the repository at this point in the history
This fixes #4.
  • Loading branch information
matthiasnoback committed Jan 29, 2014
1 parent 77ad186 commit 3f672c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MatthiasNoback/MicrosoftOAuth/AccessTokenProvider.php
Expand Up @@ -79,7 +79,7 @@ private function authorize($scope, $grantType)
$response = $this->browser->post(
self::OAUTH_URL,
array(),
http_build_query($requestParameters)
http_build_query($requestParameters, null, '&')
);
}
catch (\Exception $previous) {
Expand Down
Expand Up @@ -16,7 +16,7 @@ public function getUrl()
{
$url = self::HTTP_API_URL.$this->getApiMethodName();
if (null !== $queryParameters = $this->getQueryParameters()) {
$url .= '?'.http_build_query($queryParameters);
$url .= '?'.http_build_query($queryParameters, null, '&');
}

return $url;
Expand Down

0 comments on commit 3f672c5

Please sign in to comment.