health: Use correct MIME types for JSON responses.

This commit is contained in:
Neil Williams
2013-01-28 21:10:58 -08:00
parent 1ae3fad1d2
commit a0c614d371

View File

@@ -39,9 +39,9 @@ class HealthController(MinimalController):
pass
def GET_health(self):
response.headers['Content-Type'] = 'text/plain'
response.content_type = "application/json"
return json.dumps(g.versions, sort_keys=True, indent=4)
def GET_promohealth(self):
response.headers['Content-Type'] = 'text/plain'
response.content_type = "application/json"
return json.dumps(promote.health_check())