From cd72de610ac46d5fefc7c73f3bd35cfdc65b8361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Mon, 18 Aug 2014 19:17:27 +0000 Subject: [PATCH] add tls_fingerprint support to the http backend --- vdirsyncer/storage/http.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vdirsyncer/storage/http.py b/vdirsyncer/storage/http.py index ad918e6..4bc2757 100644 --- a/vdirsyncer/storage/http.py +++ b/vdirsyncer/storage/http.py @@ -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 }