From f51036ed00be7c5b59f67acdd09abbdfe6377220 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 17 May 2017 14:22:01 +0200 Subject: [PATCH] use application/json --- pandora/oxdjango/shortcuts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/oxdjango/shortcuts.py b/pandora/oxdjango/shortcuts.py index ab124345..ff0de756 100644 --- a/pandora/oxdjango/shortcuts.py +++ b/pandora/oxdjango/shortcuts.py @@ -26,7 +26,7 @@ def _to_json(python_object): return python_object.strftime('%Y-%m-%dT%H:%M:%SZ') raise TypeError(u'%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"