Sfoglia il codice sorgente

[fix] re-enable ssl verification for searchcode

closes #784
Adam Tauber 8 anni fa
parent
commit
19cd2bf3b5
2 ha cambiato i file con 0 aggiunte e 10 eliminazioni
  1. 0
    5
      searx/engines/searchcode_code.py
  2. 0
    5
      searx/engines/searchcode_doc.py

+ 0
- 5
searx/engines/searchcode_code.py Vedi 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
-
42
     return params
37
     return params
43
 
38
 
44
 
39
 

+ 0
- 5
searx/engines/searchcode_doc.py Vedi 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
-
35
     return params
30
     return params
36
 
31
 
37
 
32