feat: declare default User-Agent header value via config
This commit is contained in:
@@ -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'],
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user