mirror of
https://github.com/avency/Gitea.git
synced 2025-10-29 18:52:33 +01:00
fix: Fix query handling
This commit is contained in:
@ -75,7 +75,7 @@ class Client
|
|||||||
*/
|
*/
|
||||||
public function request(string $uri = '', string $method = 'GET', array $options = []): ResponseInterface
|
public function request(string $uri = '', string $method = 'GET', array $options = []): ResponseInterface
|
||||||
{
|
{
|
||||||
if (!empty($this->config['query']) && !empty($options['query'])) {
|
if (!empty($this->config['query']) && isset($options['query'])) {
|
||||||
$options['query'] = array_merge($this->config['query'], $options['query']);
|
$options['query'] = array_merge($this->config['query'], $options['query']);
|
||||||
}
|
}
|
||||||
return $this->httpClient->request($method, $uri, $options);
|
return $this->httpClient->request($method, $uri, $options);
|
||||||
|
|||||||
Reference in New Issue
Block a user