diff options
author | dalf <alex@al-f.net> | 2015-02-20 22:56:04 +0100 |
---|---|---|
committer | dalf <alex@al-f.net> | 2015-02-20 22:56:04 +0100 |
commit | 7cc5146c146d4c20c23b1fc379949cb0ef8dd77b (patch) | |
tree | 5b8acc3ce57f65670e31e71094386ad6eb825372 /searx | |
parent | 57996b12fcbe193e89537c63abd1a75c3c65a25a (diff) | |
download | searxng-7cc5146c146d4c20c23b1fc379949cb0ef8dd77b.tar.gz searxng-7cc5146c146d4c20c23b1fc379949cb0ef8dd77b.zip |
[fix] btdigg: disable ssl check,
avoid this error : SSLError: hostname 'btdigg.org' doesn't match either of 'ssl2000.cloudflare.com', 'cloudflare.com', '*.cloudflare.com'
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/btdigg.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/engines/btdigg.py b/searx/engines/btdigg.py index 944250628..d0f05ec2d 100644 --- a/searx/engines/btdigg.py +++ b/searx/engines/btdigg.py @@ -29,6 +29,10 @@ def request(query, params): params['url'] = search_url.format(search_term=quote(query), pageno=params['pageno']-1) + # FIX: SSLError: hostname 'btdigg.org' + # doesn't match either of 'ssl2000.cloudflare.com', 'cloudflare.com', '*.cloudflare.com' + params['verify'] = False + return params |