From c2a56443bdff9aa2d31ef8a901f7d4d3aa819ddb Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 24 Feb 2022 16:32:14 +0100 Subject: send /query responses with proper mimetype --- src/hydrilla/server/serve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hydrilla/server') diff --git a/src/hydrilla/server/serve.py b/src/hydrilla/server/serve.py index db04e01..9a75483 100644 --- a/src/hydrilla/server/serve.py +++ b/src/hydrilla/server/serve.py @@ -554,7 +554,7 @@ def query(): 'generated_by': generated_by } - return json.dumps(result) + return Response(json.dumps(result), mimetype='application/json') default_config_path = Path('/etc/hydrilla/config.json') default_malcontent_dir = '/var/lib/hydrilla/malcontent' -- cgit v1.2.3