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>
This commit is contained in:
parent
a6f6620ea9
commit
0ccd68bec6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user