summaryrefslogtreecommitdiff
path: root/searx/engines/duckduckgo_definitions.py
diff options
context:
space:
mode:
authorDalf <alex@al-f.net>2014-01-05 13:50:17 +0100
committerDalf <alex@al-f.net>2014-01-05 13:50:17 +0100
commite88cf0a0a877458e2babc8af43c5a77654036af6 (patch)
tree1cc59199a81ffdacb77b9171f5eb39e63a0f5d24 /searx/engines/duckduckgo_definitions.py
parent75d22cd84759d87f6dff336cdd74f71e4bfcfa83 (diff)
downloadsearxng-e88cf0a0a877458e2babc8af43c5a77654036af6.tar.gz
searxng-e88cf0a0a877458e2babc8af43c5a77654036af6.zip
[mod] minor fixes (duckduck_definitions : if a ddg bang is in the query, avoid a useless redirect)
Diffstat (limited to 'searx/engines/duckduckgo_definitions.py')
-rw-r--r--searx/engines/duckduckgo_definitions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/duckduckgo_definitions.py b/searx/engines/duckduckgo_definitions.py
index 2b180d0ff..2d97f8154 100644
--- a/searx/engines/duckduckgo_definitions.py
+++ b/searx/engines/duckduckgo_definitions.py
@@ -1,7 +1,7 @@
import json
from urllib import urlencode
-url = 'http://api.duckduckgo.com/?{query}&format=json&pretty=0'
+url = 'http://api.duckduckgo.com/?{query}&format=json&pretty=0&no_redirect=1'
def request(query, params):
params['url'] = url.format(query=urlencode({'q': query}))