diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2020-08-10 12:15:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-10 12:15:45 +0200 |
| commit | e6d002a7303fb6ffd7d18564360603bcac5f2480 (patch) | |
| tree | 24d3a2a90ad868719993302c02702c49be196372 | |
| parent | 43df251f3d4f70b94fcbe37542e12af77bc10f8a (diff) | |
| parent | 8dff74dd1b9f63b6e300991211582157b34ee328 (diff) | |
Merge pull request #2130 from msafadieh/master
Make default query submission method configurable
| -rw-r--r-- | searx/preferences.py | 2 | ||||
| -rw-r--r-- | searx/settings.yml | 1 |
2 files changed, 2 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( diff --git a/searx/settings.yml b/searx/settings.yml index 63685be8b..68fd0ee6f 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -16,6 +16,7 @@ server: base_url : False # Set custom base_url. Possible values: False or "https://your.custom.host/location/" image_proxy : False # Proxying image results through searx http_protocol_version : "1.0" # 1.0 and 1.1 are supported + method: "POST" # POST queries are more secure as they don't show up in history but may cause problems when using Firefox containers ui: static_path : "" # Custom static path - leave it blank if you didn't change |