1
0
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:
Adolfo Gómez García 2024-12-23 16:59:10 +01:00
parent 3863236afd
commit 51fbb7b613
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -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