Add custom user-agent
This commit is contained in:
parent
286b3e7edd
commit
4a7e2bce53
1 changed files with 4 additions and 0 deletions
|
@ -122,6 +122,10 @@ class NextcloudHandler:
|
||||||
)
|
)
|
||||||
self._read_cache()
|
self._read_cache()
|
||||||
self.session = requests.Session()
|
self.session = requests.Session()
|
||||||
|
headers = {
|
||||||
|
'User-Agent': 'nc_password_client/0.0.2'
|
||||||
|
}
|
||||||
|
self.session.headers.update(headers)
|
||||||
proxies = {
|
proxies = {
|
||||||
'http': params.get('https_proxy', ''),
|
'http': params.get('https_proxy', ''),
|
||||||
'https': params.get('https_proxy', ''),
|
'https': params.get('https_proxy', ''),
|
||||||
|
|
Loading…
Reference in a new issue