Permalink
Browse files

Include JSON header

  • Loading branch information...
1 parent 096e8d2 commit 650eeca3196c7e2970bb1534f1b58539481b61d0 @angelini committed Jan 12, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/resty.js
View
@@ -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();

0 comments on commit 650eeca

Please sign in to comment.