Permalink
Browse files

json fix

  • Loading branch information...
1 parent bef3a2f commit 821a117cc67a073b5bd3f4a7059190f61c1168c0 @AndreCharbonneau AndreCharbonneau committed Jun 3, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 wsgi/services/base.py
View
@@ -158,6 +158,7 @@ def info(self):
d['releaseTime'] = str(self.getReleaseTime())
if self._should_return_json():
+ cherrypy.response.headers['Content-Type'] = "application/json"
return json.dumps(d)
else:
return HtmlUtils().dictToPage(d)
@@ -195,6 +196,7 @@ def stats(self):
d['invocations'] = self.getInvocations()
d['lastReset'] = str(self.getLastReset())
if self._should_return_json():
+ cherrypy.response.headers['Content-Type'] = "application/json"
return json.dumps(d)
else:
return HtmlUtils().dictToPage(d)

0 comments on commit 821a117

Please sign in to comment.