From a0c614d371c11df6fbec6ec69f42130cca3aa3fe Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Mon, 28 Jan 2013 21:10:58 -0800 Subject: [PATCH] health: Use correct MIME types for JSON responses. --- r2/r2/controllers/health.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r2/r2/controllers/health.py b/r2/r2/controllers/health.py index 437892095..6f83c5554 100644 --- a/r2/r2/controllers/health.py +++ b/r2/r2/controllers/health.py @@ -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())