mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
health: Use correct MIME types for JSON responses.
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user