Skip to content

Commit

Permalink
return raw object instead of stringified version which toJSON() does
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Baldwin committed Jun 12, 2012
1 parent 5364c34 commit af1137c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/middleware/csp.js
Expand Up @@ -123,3 +123,6 @@ module.exports.toJSON = function () {
return JSON.stringify(csp);
};

module.exports.toJS = function () {
return csp;
};

0 comments on commit af1137c

Please sign in to comment.