mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 11:30:55 +01:00
Use the correct Content-Type
for the Aphlict status route
Summary: The `/status/` route for the Aphlict server returns JSON. Test Plan: ```lang=bash > curl -I http://127.0.0.1:22281/status/ HTTP/1.1 200 OK Content-Type: application/json Date: Fri, 02 Jan 2015 13:08:34 GMT Connection: keep-alive ``` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11144
This commit is contained in:
parent
1b80f6e09d
commit
44198d68a7
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ http.createServer(function(request, response) {
|
|||
'version': 6
|
||||
};
|
||||
|
||||
response.writeHead(200, {'Content-Type': 'text/plain'});
|
||||
response.writeHead(200, {'Content-Type': 'application/json'});
|
||||
response.write(JSON.stringify(status));
|
||||
response.end();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue