Add custom user-agent

This commit is contained in:
Antonio J. Delgado 2024-11-19 13:11:02 +02:00
parent 286b3e7edd
commit 4a7e2bce53

View file

@ -122,6 +122,10 @@ class NextcloudHandler:
)
self._read_cache()
self.session = requests.Session()
headers = {
'User-Agent': 'nc_password_client/0.0.2'
}
self.session.headers.update(headers)
proxies = {
'http': params.get('https_proxy', ''),
'https': params.get('https_proxy', ''),