Przeglądaj źródła

Fix startpage

Fix issue with unicode caracters in startpage : we shouldn't urlencode them if we are using POST.
Should fix #169. @dimqua can you confirm ?
Cqoicebordel 10 lat temu
rodzic
commit
fa0330f0ff
1 zmienionych plików z 0 dodań i 1 usunięć
  1. 0
    1
      searx/engines/startpage.py

+ 0
- 1
searx/engines/startpage.py Wyświetl plik

38
 # do search-request
38
 # do search-request
39
 def request(query, params):
39
 def request(query, params):
40
     offset = (params['pageno'] - 1) * 10
40
     offset = (params['pageno'] - 1) * 10
41
-    query = urlencode({'q': query})[2:]
42
 
41
 
43
     params['url'] = search_url
42
     params['url'] = search_url
44
     params['method'] = 'POST'
43
     params['method'] = 'POST'