Skip to content

Commit

Permalink
Reverted code back
Browse files Browse the repository at this point in the history
  • Loading branch information
luislobo committed Dec 10, 2016
1 parent 4ce5203 commit c90f897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hooks/responses/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ function _mixin_jsonx(req, res) {
sails.log.debug('***********************************************************************************');

// Send conventional status message if no data was provided
// (see http://expressjs.com/en/api.html#res.sendStatus)
// (see http://expressjs.com/en/api.html#res.send)
if (_.isUndefined(data)) {
return res.sendStatus(res.statusCode);
return res.status(res.statusCode).send();
}
else if (typeof data !== 'object') {
// (note that this guard includes arrays)
Expand Down

0 comments on commit c90f897

Please sign in to comment.