From 952890d9cc4256c1628b5df01375821fa7279ab9 Mon Sep 17 00:00:00 2001 From: ilvalle Date: Thu, 18 Dec 2014 09:34:46 +0100 Subject: [PATCH] set directly 'application/json' to avoid a call to contenttype --- gluon/globals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/globals.py b/gluon/globals.py index f2c13882..166a8f8b 100644 --- a/gluon/globals.py +++ b/gluon/globals.py @@ -627,7 +627,7 @@ class Response(Storage): def json(self, data, default=None): if 'Content-Type' not in self.headers: - self.headers['Content-Type'] = contenttype('.json') + self.headers['Content-Type'] = 'application/json' return json(data, default=default or custom_json) def xmlrpc(self, request, methods):