aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/caldav
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2022-04-16 17:49:19 -0400
committerLukas Fleischer <lfleischer@calcurse.org>2022-04-16 17:49:19 -0400
commit0ccd68bec6e609cce36f6fef5b1c75826b73bdbc (patch)
treefcd0212c24db6570bf7c21e473c2618e310ed476 /contrib/caldav
parenta6f6620ea9e4e4ffd796f311c977c2e893da7252 (diff)
downloadcalcurse-0ccd68bec6e609cce36f6fef5b1c75826b73bdbc.tar.gz
calcurse-0ccd68bec6e609cce36f6fef5b1c75826b73bdbc.zip
calcurse-caldav: fix InsecureSSL
Pass disable_ssl_certificate_validation as keyword argument to httplib2.Http(). Fixes a regression introduced in 1e1d615 (Refactor calcurse-caldav to use httplib2, 2017-09-06). Fixes GitHub issue #420. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'contrib/caldav')
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py
index 3f57fdf..99e2e6a 100755
--- a/contrib/caldav/calcurse-caldav.py
+++ b/contrib/caldav/calcurse-caldav.py
@@ -733,9 +733,7 @@ try:
# Connect to the server.
if verbose:
print('Connecting to ' + hostname + '...')
- conn = httplib2.Http()
- if insecure_ssl:
- conn.disable_ssl_certificate_validation = True
+ conn = httplib2.Http(disable_ssl_certificate_validation=insecure_ssl)
if authmethod == 'oauth2':
# Authenticate with OAuth2 and authorize HTTP object