feat: declare default User-Agent header value via config

This commit is contained in:
2026-02-05 17:22:09 +01:00
parent f735f26a03
commit 731fb204e1
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -23,6 +23,11 @@ framework:
default_locale: '%env(APP_LOCALE)%'
http_client:
default_options:
headers:
'User-Agent': 'Platoniq Goteo-v4-API'
when@test:
framework:
test: true
@@ -24,7 +24,6 @@ class NominatimService
) {
$this->httpClient = $httpClient->withOptions([
'base_uri' => self::NOMINATIM_BASE_URI,
'headers' => ['User-Agent' => 'goteo/v4'],
]);
}