diff options
Diffstat (limited to 'searx')
| -rw-r--r-- | searx/settings.yml | 3 | ||||
| -rw-r--r-- | searx/settings_defaults.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/searx/settings.yml b/searx/settings.yml index e3201e8ca..65afb086f 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -101,7 +101,8 @@ server: # 1.0 and 1.1 are supported http_protocol_version: "1.0" # POST queries are more secure as they don't show up in history but may cause - # problems when using Firefox containers + # problems when using Firefox containers. + # Is overwritten by ${SEARXNG_METHOD} method: "POST" default_http_headers: X-Content-Type-Options: nosniff diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index 30434aea1..b91657ff6 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -182,7 +182,7 @@ SCHEMA = { 'base_url': SettingsValue((False, str), False, 'SEARXNG_BASE_URL'), 'image_proxy': SettingsValue(bool, False, 'SEARXNG_IMAGE_PROXY'), 'http_protocol_version': SettingsValue(('1.0', '1.1'), '1.0'), - 'method': SettingsValue(('POST', 'GET'), 'POST'), + 'method': SettingsValue(('POST', 'GET'), 'POST', 'SEARXNG_METHOD'), 'default_http_headers': SettingsValue(dict, {}), }, 'redis': { |