Skip to content

Commit c600f65

Browse files
committed
Fix wrong order of user agent generation
1 parent 729570b commit c600f65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Clients/GuzzleClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public function __construct(HetznerAPIClient $client)
1818
'headers' => [
1919
'Authorization' => 'Bearer ' . $client->getApiToken(),
2020
'Content-Type' => 'application/json',
21-
'User-Agent' => 'hcloud-php/' . HetznerAPIClient::VERSION . (strlen($client->getUserAgent() > 0) ? ' ' . $client->getUserAgent() : '')
21+
'User-Agent' => (strlen($client->getUserAgent() > 0) ? ' ' . $client->getUserAgent() : '') . 'hcloud-php/' . HetznerAPIClient::VERSION
2222
],
2323
]);
2424
}
25-
}
25+
}

0 commit comments

Comments
 (0)