Skip to content

Commit

Permalink
Include JSON header
Browse files Browse the repository at this point in the history
  • Loading branch information
angelini committed Jan 12, 2012
1 parent 096e8d2 commit 650eeca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/resty.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var isInt = exports._isInt = function(value) {
};

var send = exports._send = function(res, response, code) {
res.setHeader('Content-Type', 'application/json');
res.statusCode = code || 200;
res.write(JSON.stringify(response));
res.end();
Expand Down

0 comments on commit 650eeca

Please sign in to comment.