Skip to content

Commit

Permalink
fixing payload
Browse files Browse the repository at this point in the history
  • Loading branch information
brettneese committed Nov 18, 2015
1 parent 3f4ed42 commit 2b752ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/responses/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports.buildResponse = function (req, res, data, options, config) {
debug: { // an optional "debug" object that gets stripped in production
url: req.url, // url that made the request
method: req.method,
payload: req.params.all(),
payload: JSON.stringify(req.params.all()),
message: data.message,
stack: data.stack
}
Expand All @@ -62,7 +62,7 @@ module.exports.buildResponse = function (req, res, data, options, config) {

// if includeReq enabled, include the entire req in response. useful but not recommended, and off by default.
if (sails.config.flagpole.debug.includeReq) {
jsonData.meta.debug.req = req
jsonData.meta.debug.req = req;
}


Expand Down

0 comments on commit 2b752ce

Please sign in to comment.