From bfc033e115026b2fb655b576b19e0b49c6373501 Mon Sep 17 00:00:00 2001 From: Stefanie Taepke Date: Thu, 12 Oct 2017 15:50:56 +0200 Subject: [PATCH] add False and 0 as possible values for SSL_VERIFY-option --- datapusher/jobs.py | 2 +- doc/using.rst | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/datapusher/jobs.py b/datapusher/jobs.py index e13a7ea..188ee6a 100644 --- a/datapusher/jobs.py +++ b/datapusher/jobs.py @@ -32,7 +32,7 @@ CHUNK_SIZE = 16 * 1024 # 16kb DOWNLOAD_TIMEOUT = 30 -if web.app.config.get('SSL_VERIFY') in ['False', 'FALSE', '0']: +if web.app.config.get('SSL_VERIFY') in ['False', 'FALSE', '0', False, 0]: SSL_VERIFY = False else: SSL_VERIFY = True diff --git a/doc/using.rst b/doc/using.rst index b3d1ed8..27e1c3d 100644 --- a/doc/using.rst +++ b/doc/using.rst @@ -89,6 +89,3 @@ If you still have problems verifying certificates, or maybe for test purposes, you can switch the verification off in datapusher_settings.py:: SSL_VERIFY = False - -Note there is an ongoing issue with this option: -https://github.com/ckan/datapusher/issues/149 \ No newline at end of file