mirror of
https://github.com/avency/Gitea.git
synced 2025-10-29 02:34:59 +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
|
||||
{
|
||||
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']);
|
||||
}
|
||||
return $this->httpClient->request($method, $uri, $options);
|
||||
|
||||
Reference in New Issue
Block a user