diff --git a/lib/responses/index.js b/lib/responses/index.js index 6fc6d49..45f1555 100644 --- a/lib/responses/index.js +++ b/lib/responses/index.js @@ -95,6 +95,8 @@ module.exports.buildResponse = function (req, res, data, options, config) { data = undefined; } + } else { + json = data; }