Skip to content

Commit bedb55e

Browse files
Merge pull request #238 from alma/fix/headers
fix: errors in header
2 parents f024cc8 + b153013 commit bedb55e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Client/Application/Endpoint/AbstractEndpoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct(ClientInterface $client)
3535
private function createRequest(string $method, string $uri, array $body = []): Request {
3636

3737
$headers = [
38-
'User-Agent' => $this->client->getConfig()->getUserAgentString(),
38+
'User-Agent' => [$this->client->getConfig()->getUserAgentString()],
3939
'Authorization' => ['Alma-Auth ' . $this->client->getConfig()->getApiKey()]
4040
];
4141
return new Request($method, $uri, $headers, json_encode($body));

0 commit comments

Comments
 (0)