Do not offer opensearch.xml as attachment (#713)
Sending opensearch.xml as an attachment is unnecessary. This will also allow inspecting the XML file via browser without downloading it.main
parent
2fcfeacd44
commit
739a5092cc
|
@ -251,7 +251,7 @@ def opensearch():
|
|||
'opensearch.xml',
|
||||
main_url=opensearch_url,
|
||||
request_type='' if get_only else 'method="post"'
|
||||
), 200, {'Content-Disposition': 'attachment; filename="opensearch.xml"'}
|
||||
), 200, {'Content-Type': 'application/xml'}
|
||||
|
||||
|
||||
@app.route(f'/{Endpoint.search_html}', methods=['GET'])
|
||||
|
|
Loading…
Reference in New Issue