mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Add header for current Firefly III version.
This commit is contained in:
@@ -46,7 +46,12 @@ class UpdateRequest implements UpdateRequestInterface
|
|||||||
Log::debug(sprintf('Going to call %s', $uri));
|
Log::debug(sprintf('Going to call %s', $uri));
|
||||||
try {
|
try {
|
||||||
$client = new Client();
|
$client = new Client();
|
||||||
$res = $client->request('GET', $uri);
|
$options = [
|
||||||
|
'headers' => [
|
||||||
|
'User-Agent' => sprintf('FireflyIII/%s', config('firefly.version')),
|
||||||
|
],
|
||||||
|
];
|
||||||
|
$res = $client->request('GET', $uri, $options);
|
||||||
} catch (GuzzleException|Exception $e) {
|
} catch (GuzzleException|Exception $e) {
|
||||||
throw new FireflyException(sprintf('Response error from update check: %s', $e->getMessage()));
|
throw new FireflyException(sprintf('Response error from update check: %s', $e->getMessage()));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user