From 739a5092ccad9a7e3f6ab5affd793042d0c4d5b0 Mon Sep 17 00:00:00 2001 From: gdm85 Date: Thu, 7 Apr 2022 21:52:17 +0200 Subject: [PATCH] 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. --- app/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index 658961a..4feaaa6 100644 --- a/app/routes.py +++ b/app/routes.py @@ -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'])