diff options
author | Guilhem Bonnefille <guilhem.bonnefille@c-s.fr> | 2016-04-05 13:31:49 +0200 |
---|---|---|
committer | Guilhem Bonnefille <guilhem.bonnefille@c-s.fr> | 2016-04-05 13:31:49 +0200 |
commit | 2733a92383f7f8127cdf4871c8091b0489ba7356 (patch) | |
tree | dce7b680224d74761efd8a5fd2d928737742b6a6 /searx/engines/doku.py | |
parent | b0d42e8cf9b588f1b2c81d29ca0f9adb9983553f (diff) | |
download | searxng-2733a92383f7f8127cdf4871c8091b0489ba7356.tar.gz searxng-2733a92383f7f8127cdf4871c8091b0489ba7356.zip |
Fix query encoding
Diffstat (limited to 'searx/engines/doku.py')
-rw-r--r-- | searx/engines/doku.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/doku.py b/searx/engines/doku.py index 233fd2233..93867fd0d 100644 --- a/searx/engines/doku.py +++ b/searx/engines/doku.py @@ -23,7 +23,7 @@ number_of_results = 5 # Doku is OpenSearch compatible base_url = 'http://localhost:8090' search_url = '/?do=search'\ - '&id={query}' + '&{query}' # TODO '&startRecord={offset}'\ # TODO '&maximumRecords={limit}'\ @@ -32,7 +32,7 @@ search_url = '/?do=search'\ def request(query, params): params['url'] = base_url +\ - search_url.format(query=urlencode({'query': query})) + search_url.format(query=urlencode({'id': query})) return params |