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
     params['url'] = search_url.format(query=urlencode({'q': query}),
34
     params['url'] = search_url.format(query=urlencode({'q': query}),
35
                                       pageno=params['pageno']-1)
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
     return params
42
     return params
38
 
43
 
39
 
44
 

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

27
     params['url'] = search_url.format(query=urlencode({'q': query}),
27
     params['url'] = search_url.format(query=urlencode({'q': query}),
28
                                       pageno=params['pageno']-1)
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
     return params
35
     return params
31
 
36
 
32
 
37