From 66dc18d2d56d0c69d2b56ed361dd05e9af58ba5c Mon Sep 17 00:00:00 2001 From: gdm85 Date: Thu, 7 Apr 2022 01:40:42 +0200 Subject: [PATCH] Do not offer opensearch.xml as attachment --- 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'])