From d9b6b0bed901a4400cce83327841aae08dd65355 Mon Sep 17 00:00:00 2001 From: Brett Neese Date: Fri, 6 Nov 2015 17:10:08 -0600 Subject: [PATCH] fix issue with empty json --- lib/responses/index.js | 2 ++ 1 file changed, 2 insertions(+) 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; }