mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 21:59:22 +02:00
[mod] minor fixes (duckduck_definitions : if a ddg bang is in the query, avoid a useless redirect)
This commit is contained in:
parent
75d22cd847
commit
e88cf0a0a8
3 changed files with 1 additions and 1 deletions
|
@ -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}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue