commit: e1adf8f7b849d01dc217c892af986d8c1875122d
parent: 1184f45ca52f2b906587d089cbbb3d8cb16c954b
Author: Adam Tauber <asciimoo@gmail.com>
Date: Tue, 7 Apr 2015 12:06:07 +0200
[fix] piratebay - cloudfare ssl errors
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/searx/engines/piratebay.py b/searx/engines/piratebay.py
@@ -42,6 +42,10 @@ def request(query, params):
search_type=search_type,
pageno=params['pageno'] - 1)
+ # FIX: SSLError: hostname 'kthepiratebay.se'
+ # doesn't match either of 'ssl2000.cloudflare.com', 'cloudflare.com', '*.cloudflare.com'
+ params['verify'] = False
+
return params