Skip to content

Commit

Permalink
add False and 0 as possible values for SSL_VERIFY-option
Browse files Browse the repository at this point in the history
  • Loading branch information
stefina committed Oct 12, 2017
1 parent c258e29 commit bfc033e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion datapusher/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions doc/using.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bfc033e

Please sign in to comment.