From 377386df46671724384521c5104adaae84eb85cd Mon Sep 17 00:00:00 2001 From: j Date: Mon, 18 Nov 2019 23:49:07 +0100 Subject: [PATCH] use application/json --- oxdata/oxdjango/shortcuts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oxdata/oxdjango/shortcuts.py b/oxdata/oxdjango/shortcuts.py index 0602b74..e6d3cc4 100644 --- a/oxdata/oxdjango/shortcuts.py +++ b/oxdata/oxdjango/shortcuts.py @@ -25,7 +25,7 @@ def _to_json(python_object): return python_object.strftime('%Y-%m-%dT%H:%M:%SZ') raise TypeError('%s %s is not JSON serializable' % (repr(python_object), type(python_object))) -def render_to_json_response(dictionary, content_type="text/json", status=200): +def render_to_json_response(dictionary, content_type="application/json", status=200): indent = None if settings.DEBUG: content_type = "text/javascript"