We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 265a427 + b38d803 commit 3242cf5Copy full SHA for 3242cf5
lib/Github/HttpClient/Listener/AuthListener.php
@@ -86,7 +86,7 @@ public function preSend(RequestInterface $request)
86
}
87
88
$url = $request->getUrl();
89
- $url .= '?'.utf8_encode(http_build_query(array('access_token' => $this->options['tokenOrLogin']), '', '&'));
+ $url .= (false === strpos($url, '?') ? '?' : '&').utf8_encode(http_build_query(array('access_token' => $this->options['tokenOrLogin']), '', '&'));
90
91
$request->fromUrl(new Url($url));
92
break;
0 commit comments