summaryrefslogtreecommitdiff
path: root/searx/engines/openstreetmap.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2019-12-21 20:56:38 +0100
committerAdam Tauber <asciimoo@gmail.com>2019-12-21 20:56:38 +0100
commitf8713512bedf19d4495e0b9a0fd86679daaf7f79 (patch)
treee82b8cc73f7b298482ec1e608baa3420d1701dcb /searx/engines/openstreetmap.py
parente5305f886c0d7d5fb3f34d1fbd7f9a545c14c284 (diff)
downloadsearxng-f8713512bedf19d4495e0b9a0fd86679daaf7f79.tar.gz
searxng-f8713512bedf19d4495e0b9a0fd86679daaf7f79.zip
[fix] convert byte query to string in osm engine - fixes #1220
Diffstat (limited to 'searx/engines/openstreetmap.py')
-rw-r--r--searx/engines/openstreetmap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/openstreetmap.py b/searx/engines/openstreetmap.py
index 733ba6203..cec10a3c7 100644
--- a/searx/engines/openstreetmap.py
+++ b/searx/engines/openstreetmap.py
@@ -24,7 +24,7 @@ result_base_url = 'https://openstreetmap.org/{osm_type}/{osm_id}'
# do search-request
def request(query, params):
- params['url'] = base_url + search_string.format(query=query)
+ params['url'] = base_url + search_string.format(query=query.decode('utf-8'))
return params