diff options
| author | Mohamad Safadieh <me@msafadieh.com> | 2020-08-09 16:57:31 -0400 |
|---|---|---|
| committer | Mohamad Safadieh <me@msafadieh.com> | 2020-08-09 17:04:47 -0400 |
| commit | 8dff74dd1b9f63b6e300991211582157b34ee328 (patch) | |
| tree | 4241f73a7bfcbfa0cfc3d04e7727f728ff80679d /searx/preferences.py | |
| parent | f3bfc19a557ef121d370033de6325df2ca835dcd (diff) | |
Make default query submission method configurable
Sending queries through POST, while better for privacy, breaks functionality
with certain extensions (e.g. Firefox containers). Since Firefox does
not send cookies when requesting `/opensearch.xml`, users cannot easily
switch to GET on the client side unless they make a custom search
engine. This commit allows admins to modify the default method on their
side so they can set it to GET if needed.
Diffstat (limited to 'searx/preferences.py')
| -rw-r--r-- | searx/preferences.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/preferences.py b/searx/preferences.py index f70aee37a..34da1b7c6 100644 --- a/searx/preferences.py +++ b/searx/preferences.py @@ -348,7 +348,7 @@ class Preferences(object): } ), 'method': EnumStringSetting( - 'POST', + settings['server'].get('method', 'POST'), choices=('GET', 'POST') ), 'safesearch': MapSetting( |