diff options
author | Alexandre Flament <alex@al-f.net> | 2021-02-09 12:07:19 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-02-12 11:10:08 +0100 |
commit | c22d4c764cae6097c463045e86bc81b4becb2545 (patch) | |
tree | aed0a3d557b114179dddc1ff329b0dfbeaec6640 /docs | |
parent | d76660463b9001137c092d61a2781464f8345316 (diff) | |
download | searxng-c22d4c764cae6097c463045e86bc81b4becb2545.tar.gz searxng-c22d4c764cae6097c463045e86bc81b4becb2545.zip |
[fix] duckduckgo engine: "!ddg !g" do not redirect to google
* searx understand "!ddg !g time" as : send "!g time" to DDG
* !g a DDG bang for Google: DDG return a HTTP redirect to Google
This commit adds a the allows_redirect param not to follow HTTP redirect.
The DDG engine returns a empty result as before without HTTP redirect.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/engine_overview.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/dev/engine_overview.rst b/docs/dev/engine_overview.rst index 7007e7b99..b51181974 100644 --- a/docs/dev/engine_overview.rst +++ b/docs/dev/engine_overview.rst @@ -169,6 +169,7 @@ headers set HTTP header information data set HTTP data information cookies set HTTP cookies verify bool Performing SSL-Validity check +allow_redirects bool Follow redirects max_redirects int maximum redirects, hard limit soft_max_redirects int maximum redirects, soft limit. Record an error but don't stop the engine raise_for_httperror bool True by default: raise an exception if the HTTP code of response is >= 300 |