Skip to content

Commit 62fe0fd

Browse files
authored
Fix headers
1 parent 3064124 commit 62fe0fd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/ApiCall.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,12 @@ private function makeRequest(string $method, string $endPoint, bool $asJson, arr
218218
$reqOp['query'] = http_build_query($options['query']);
219219
}
220220

221-
$response = $this->client->send(\strtoupper($method), $url, $reqOp);
221+
$response = $this->client->send(
222+
\strtoupper($method),
223+
$url . '?' . ($reqOp['query'] ?? ''),
224+
$reqOp['headers'] ?? [],
225+
$reqOp['body'] ?? null
226+
);
222227

223228
$statusCode = $response->getStatusCode();
224229
if (0 < $statusCode && $statusCode < 500) {

0 commit comments

Comments
 (0)