From b3a076ab78dd16900f39571472b57c4b8e078433 Mon Sep 17 00:00:00 2001 From: Nathan Walters Date: Mon, 6 Nov 2023 13:28:38 -0800 Subject: [PATCH] Return raw buffer instead of string --- lib/modem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modem.js b/lib/modem.js index b5f4cfd..7323e8a 100644 --- a/lib/modem.js +++ b/lib/modem.js @@ -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);