Skip to content

Commit

Permalink
Merge pull request #100 from Cherry/patch-1
Browse files Browse the repository at this point in the history
Return string rather than Buffer on response
  • Loading branch information
apocas authored Jan 31, 2019
2 parents a2101bb + 05b5d35 commit 0d07517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modem.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Modem.prototype.buildRequest = function(options, context, data, callback) {

debug('Received: %s', result);

var json = parseJSON(result) || buffer;
var json = parseJSON(result) || result;
self.buildPayload(null, context.isStream, context.statusCodes, false, req, res, json, callback);
});
}
Expand Down

0 comments on commit 0d07517

Please sign in to comment.