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.
This commit is contained in:
Mohamad Safadieh 2020-08-09 16:57:31 -04:00
parent f3bfc19a55
commit 8dff74dd1b
No known key found for this signature in database
GPG key ID: 2F3FDF2EAE1E3C36
2 changed files with 2 additions and 1 deletions

View file

@ -348,7 +348,7 @@ class Preferences(object):
}
),
'method': EnumStringSetting(
'POST',
settings['server'].get('method', 'POST'),
choices=('GET', 'POST')
),
'safesearch': MapSetting(