Skip to content

Commit

Permalink
Merge pull request #161 from nwalters512/fix-returned-data-type
Browse files Browse the repository at this point in the history
Return raw buffer instead of string
  • Loading branch information
apocas authored Nov 28, 2023
2 parents 110c39b + b3a076a commit 2d2fa37
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 @@ -340,7 +340,7 @@ Modem.prototype.buildRequest = function (options, context, data, callback) {

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

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

0 comments on commit 2d2fa37

Please sign in to comment.