diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-24 16:32:14 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-24 16:32:27 +0100 |
commit | c2a56443bdff9aa2d31ef8a901f7d4d3aa819ddb (patch) | |
tree | e2a0eda0d7362203ec987e718aa562cd91a81b0f /src/hydrilla/server | |
parent | 2463a13453148ad85df1fa66291d224e1f5e4b29 (diff) | |
download | haketilo-hydrilla-c2a56443bdff9aa2d31ef8a901f7d4d3aa819ddb.tar.gz haketilo-hydrilla-c2a56443bdff9aa2d31ef8a901f7d4d3aa819ddb.zip |
send /query responses with proper mimetypev1.0-beta1
Diffstat (limited to 'src/hydrilla/server')
-rw-r--r-- | src/hydrilla/server/serve.py | 2 |
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' |