Skip to content

Commit

Permalink
Return raw buffer instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalters512 committed Nov 6, 2023
1 parent f49a1c8 commit b3a076a
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 b3a076a

Please sign in to comment.