forked from EvergreenCrypto/docker-finance
Merge pull request #320 into master
5142415a container: finance: fetch: prices: fix User-Agent (Aaron Fiore)
This commit is contained in:
@@ -153,8 +153,9 @@ namespace dfi\prices\internal
|
||||
*/
|
||||
protected function request_impl(string $url, array $header): mixed
|
||||
{
|
||||
$version = preg_replace('/^v/', '', $this->get_env()->get_env('API_VERSION'));
|
||||
$headers = array(
|
||||
'User-Agent: docker-finance /' . $this->get_env()->get_env('API_VERSION'),
|
||||
'User-Agent: docker-finance/' . $version,
|
||||
'Accept: application/json',
|
||||
'Content-Type: application/json',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user