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.
1 parent 9a72241 commit fd0ab3bCopy full SHA for fd0ab3b
src/Client.php
@@ -64,6 +64,6 @@ public function __construct(?string $apiKey = null, ?string $baseUrl = null)
64
/** @return array<string, string> */
65
protected function authHeaders(): array
66
{
67
- return ['x-api-key' => $this->apiKey];
+ return $this->apiKey ? ['x-api-key' => $this->apiKey] : [];
68
}
69
0 commit comments