forked from EvergreenCrypto/docker-finance
container: finance: fetch: prices: fix User-Agent
Removes whitespace and version tag format for "product-version".
This commit is contained in:
@@ -153,8 +153,9 @@ namespace dfi\prices\internal
|
|||||||
*/
|
*/
|
||||||
protected function request_impl(string $url, array $header): mixed
|
protected function request_impl(string $url, array $header): mixed
|
||||||
{
|
{
|
||||||
|
$version = preg_replace('/^v/', '', $this->get_env()->get_env('API_VERSION'));
|
||||||
$headers = array(
|
$headers = array(
|
||||||
'User-Agent: docker-finance /' . $this->get_env()->get_env('API_VERSION'),
|
'User-Agent: docker-finance/' . $version,
|
||||||
'Accept: application/json',
|
'Accept: application/json',
|
||||||
'Content-Type: application/json',
|
'Content-Type: application/json',
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user