I set header next way:

```php
$this->container->get('request')->headers->get('User-Agent', 'Unknown');
```