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
parent
0c0a01b83f
commit
e471b012a0
|
@ -118,7 +118,7 @@ def opensearch():
|
||||||
return render_template(
|
return render_template(
|
||||||
'opensearch.xml',
|
'opensearch.xml',
|
||||||
main_url=opensearch_url,
|
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"'}
|
), 200, {'Content-Disposition': 'attachment; filename="opensearch.xml"'}
|
||||||
|
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue