summaryrefslogtreecommitdiff
path: root/src/hydrilla
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-24 16:32:14 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-24 16:32:27 +0100
commitc2a56443bdff9aa2d31ef8a901f7d4d3aa819ddb (patch)
treee2a0eda0d7362203ec987e718aa562cd91a81b0f /src/hydrilla
parent2463a13453148ad85df1fa66291d224e1f5e4b29 (diff)
downloadhaketilo-hydrilla-c2a56443bdff9aa2d31ef8a901f7d4d3aa819ddb.tar.gz
haketilo-hydrilla-c2a56443bdff9aa2d31ef8a901f7d4d3aa819ddb.zip
send /query responses with proper mimetypev1.0-beta1
Diffstat (limited to 'src/hydrilla')
-rw-r--r--src/hydrilla/server/serve.py2
1 files changed, 1 insertions, 1 deletions
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'