From a9a6511943c138895a3ae833a5c98431d4ea1962 Mon Sep 17 00:00:00 2001 From: Alexandre Fiori Date: Fri, 2 Dec 2011 10:02:08 -0500 Subject: [PATCH] removed arguments from json content type --- cyclone/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cyclone/web.py b/cyclone/web.py index 5730b1d71c..6e5ee9008b 100644 --- a/cyclone/web.py +++ b/cyclone/web.py @@ -333,12 +333,12 @@ def write(self, chunk): To write the output to the network, use the flush() method below. If the given chunk is a dictionary, we write it as JSON and set - the Content-Type of the response to be text/javascript. + the Content-Type of the response to be application/json. """ assert not self._finished if isinstance(chunk, dict): chunk = escape.json_encode(chunk) - self.set_header("Content-Type", "application/json; charset=UTF-8") + self.set_header("Content-Type", "application/json") chunk = _utf8(chunk) self._write_buffer.append(chunk)