Skip to content

Commit

Permalink
Merge pull request #18 from angelxmoreno/angelxmoreno-patch-1
Browse files Browse the repository at this point in the history
Update ApiClient.php
  • Loading branch information
angelxmoreno authored Jun 11, 2023
2 parents b2e8ca0 + 3ba710d commit e6c94bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function sendRequest(string $method, string $uri, array $data = []): arra
$method = strtolower($method);
$url = $this->buildFullUri($uri);
if (strtolower($method) === 'get') {
$url .= http_build_query($data);
$url .= '?' . http_build_query($data);
}
$request = new Request($method, $url, ['Content-Type' => 'application/json']);
if ($request->getMethod() !== 'get') {
Expand Down

0 comments on commit e6c94bd

Please # to comment.