Added UDS Actor version to uds actor request user agent

This commit is contained in:
Adolfo Gómez García 2020-07-03 14:34:28 +02:00
parent 31ee1d2858
commit 675e335aa4

View File

@ -89,7 +89,10 @@ class UDSApi: # pylint: disable=too-few-public-methods
@property
def _headers(self) -> typing.MutableMapping[str, str]:
return {'content-type': 'application/json'}
return {
'Content-Type': 'application/json',
'User-Agent': 'UDS Actor v{}'.format(VERSION)
}
def _apiURL(self, method: str) -> str:
raise NotImplementedError