Updated opensearch template

Reconfigured template to only use method parameter if set to search via
POST request (which is the default).

Apparently Chrome/Chromium based browsers don't like non-GET request
searches, and specifying a method caused Chrome to reject the template
altogether.
main
Ben Busby 2020-08-15 14:03:26 -06:00
parent 0c0a01b83f
commit e471b012a0
2 changed files with 4 additions and 3 deletions

View File

@ -118,7 +118,7 @@ def opensearch():
return render_template(
'opensearch.xml',
main_url=opensearch_url,
request_type='get' if g.user_config.get_only else 'post'
request_type='' if g.user_config.get_only else 'method="post"'
), 200, {'Content-Disposition': 'attachment; filename="opensearch.xml"'}

File diff suppressed because one or more lines are too long