[Checkins] SVN: grok/trunk/src/grok/components.py set correct JSON MIME type

Michael Haubenwallner michael at d2m.at
Fri May 22 12:32:56 EDT 2009


Log message for revision 100239:
  set correct JSON MIME type

Changed:
  U   grok/trunk/src/grok/components.py

-=-
Modified: grok/trunk/src/grok/components.py
===================================================================
--- grok/trunk/src/grok/components.py	2009-05-22 15:45:38 UTC (rev 100238)
+++ grok/trunk/src/grok/components.py	2009-05-22 16:32:56 UTC (rev 100239)
@@ -384,7 +384,7 @@
         view_name = self.__view_name__
         method = getattr(self, view_name)
         method_result = mapply(method, (), self.request)
-        self.request.response.setHeader('content-type', 'text/json')
+        self.request.response.setHeader('Content-Type', 'application/json')
         return simplejson.dumps(method_result)
 
 



More information about the Checkins mailing list