Commits

James Mills committed fef578a

- circuits.web: Set the **Content-Type** to "application/json" for all
``JSONController`` responses.

Comments (0)

Files changed (1)

circuits/web/controllers.py

                     self.cookie = self.request.cookie
                     if hasattr(self.request, "session"):
                        self.session = self.request.session
+                self.response.headers["Content-Type"] = "application/json"
                 return json.dumps(f(self, *args, **kwargs))
              finally:
                 if hasattr(self, "request"):