Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Include JSON header

  • Loading branch information...
commit 650eeca3196c7e2970bb1534f1b58539481b61d0 1 parent 096e8d2
@angelini authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/resty.js
View
1  lib/resty.js
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.