From d11c28621d19a2f8c85b847ece39c1f865febe75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Machulda?= Date: Mon, 7 May 2018 02:33:55 +0200 Subject: [PATCH] Force proper arg separator to avoid assembling broken URLs --- CHANGELOG.md | 1 + src/Authentication/QueryParam.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cf58e1..cb05a23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ ### Fixed - Fix CurlCommandFormatter for binary request payloads +- Fix QueryParam authentication to assemble proper URL regardless of PHP `arg_separator.output` directive ## 1.6.0 - 2017-07-05 diff --git a/src/Authentication/QueryParam.php b/src/Authentication/QueryParam.php index 14b58ff..650cac7 100644 --- a/src/Authentication/QueryParam.php +++ b/src/Authentication/QueryParam.php @@ -41,7 +41,7 @@ public function authenticate(RequestInterface $request) $params = array_merge($params, $this->params); - $query = http_build_query($params); + $query = http_build_query($params, null, '&'); $uri = $uri->withQuery($query);