Browse Source

[mod] disable searchcode SSL verification (unable to get local issuer)

Adam Tauber 9 years ago
parent
commit
b9c8039d74
2 changed files with 10 additions and 0 deletions
  1. 5
    0
      searx/engines/searchcode_code.py
  2. 5
    0
      searx/engines/searchcode_doc.py

+ 5
- 0
searx/engines/searchcode_code.py View File

@@ -34,6 +34,11 @@ def request(query, params):
34 34
     params['url'] = search_url.format(query=urlencode({'q': query}),
35 35
                                       pageno=params['pageno']-1)
36 36
 
37
+    # Disable SSL verification
38
+    # error: (60) SSL certificate problem: unable to get local issuer
39
+    # certificate
40
+    params['verify'] = False
41
+
37 42
     return params
38 43
 
39 44
 

+ 5
- 0
searx/engines/searchcode_doc.py View File

@@ -27,6 +27,11 @@ def request(query, params):
27 27
     params['url'] = search_url.format(query=urlencode({'q': query}),
28 28
                                       pageno=params['pageno']-1)
29 29
 
30
+    # Disable SSL verification
31
+    # error: (60) SSL certificate problem: unable to get local issuer
32
+    # certificate
33
+    params['verify'] = False
34
+
30 35
     return params
31 36
 
32 37