diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2022-04-16 17:49:19 -0400 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2022-04-16 17:49:19 -0400 |
commit | 0ccd68bec6e609cce36f6fef5b1c75826b73bdbc (patch) | |
tree | fcd0212c24db6570bf7c21e473c2618e310ed476 /contrib/caldav | |
parent | a6f6620ea9e4e4ffd796f311c977c2e893da7252 (diff) | |
download | calcurse-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-x | contrib/caldav/calcurse-caldav.py | 4 |
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 |