forked from shaba/openuds
Added UDS Actor version to uds actor request user agent
This commit is contained in:
parent
31ee1d2858
commit
675e335aa4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user