Skip to content

Commit c2a63aa

Browse files
authored
Merge pull request #98 from OndraM/force-arg-separator
Force proper arg separator to avoid composing broken URLs
2 parents c7f6a70 + d11c286 commit c2a63aa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
### Fixed
77

88
- Fix CurlCommandFormatter for binary request payloads
9+
- Fix QueryParam authentication to assemble proper URL regardless of PHP `arg_separator.output` directive
910

1011

1112
## 1.6.0 - 2017-07-05

src/Authentication/QueryParam.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function authenticate(RequestInterface $request)
4141

4242
$params = array_merge($params, $this->params);
4343

44-
$query = http_build_query($params);
44+
$query = http_build_query($params, null, '&');
4545

4646
$uri = $uri->withQuery($query);
4747

0 commit comments

Comments
 (0)