mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
add tls_fingerprint support to the http backend
This commit is contained in:
parent
af06e24f45
commit
cd72de610a
1 changed files with 3 additions and 1 deletions
|
|
@ -81,7 +81,8 @@ class HttpStorage(Storage):
|
|||
_items = None
|
||||
|
||||
def __init__(self, url, username='', password='', collection=None,
|
||||
verify=True, auth=None, useragent=USERAGENT, **kwargs):
|
||||
verify=True, auth=None, useragent=USERAGENT,
|
||||
tls_fingerprint=None, **kwargs):
|
||||
super(HttpStorage, self).__init__(**kwargs)
|
||||
|
||||
if username and not password:
|
||||
|
|
@ -89,6 +90,7 @@ class HttpStorage(Storage):
|
|||
|
||||
self._settings = {
|
||||
'verify': prepare_verify(verify),
|
||||
'tls_fingerprint': tls_fingerprint,
|
||||
'auth': prepare_auth(auth, username, password),
|
||||
'latin1_fallback': False
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue