mirror of
https://github.com/dkmstr/openuds.git
synced 2025-03-20 06:50:23 +03:00
Add User-Agent header to OpenGnsysClient requests to be the requests headers, because opengsnsys filters by that.
This commit is contained in:
parent
3863236afd
commit
51fbb7b613
@ -112,7 +112,10 @@ class OpenGnsysClient:
|
||||
|
||||
@property
|
||||
def headers(self) -> collections.abc.MutableMapping[str, str]:
|
||||
headers = {'content-type': 'application/json'}
|
||||
headers = {
|
||||
'content-type': 'application/json',
|
||||
'User-Agent': 'python-requests/2.27.1',
|
||||
}
|
||||
if self.auth:
|
||||
headers['Authorization'] = self.auth
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user