提交 c41ea47f 编写于 作者: A Ansgar

dakweb: set correct `Content-Type` for JSON responses

上级 03b18e7c
......@@ -176,6 +176,7 @@ def sources_in_suite(suite=None):
s.close()
bottle.response.content_type = 'application/json; charset=UTF-8'
return json.dumps(ret)
......@@ -241,6 +242,7 @@ def source_by_metadata(key=None):
'metadata_value': p.value})
s.close()
bottle.response.content_type = 'application/json; charset=UTF-8'
return json.dumps(ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册