container: finance: fetch: prices: fix User-Agent

Removes whitespace and version tag format for "product-version".
This commit is contained in:
2026-03-13 15:31:46 -07:00
parent 409edab84e
commit 5142415a8e

View File

@@ -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',
);