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 5cfaf9c commit 5e7336bCopy full SHA for 5e7336b
src/Clients/GuzzleClient.php
@@ -18,7 +18,7 @@ public function __construct(HetznerAPIClient $client)
18
'headers' => [
19
'Authorization' => 'Bearer ' . $client->getApiToken(),
20
'Content-Type' => 'application/json',
21
- 'User-Agent' => (strlen($client->getUserAgent() > 0) ? $client->getUserAgent() . ' ' : '') . 'hcloud-php/' . HetznerAPIClient::VERSION
+ 'User-Agent' => ((strlen($client->getUserAgent()) > 0) ? $client->getUserAgent() . ' ' : '') . 'hcloud-php/' . HetznerAPIClient::VERSION
22
],
23
]);
24
}
0 commit comments