set directly 'application/json' to avoid a call to contenttype

This commit is contained in:
ilvalle
2014-12-18 09:34:46 +01:00
parent 8d72074209
commit 952890d9cc
+1 -1
View File
@@ -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):