diff --git a/dist/index.js b/dist/index.js index 18245ff..de57a57 100644 --- a/dist/index.js +++ b/dist/index.js @@ -28,7 +28,7 @@ exports.getBinary = (domainArg, optionsArg = {}) => __awaiter(this, void 0, void //so Buffer.concat() can make us a new Buffer //of all of them together const buffer = Buffer.concat(data); - response.body = buffer.toString('base64'); + response.body = buffer.toString('binary'); done.resolve(); }); yield done.promise; diff --git a/ts/index.ts b/ts/index.ts index 7621606..97f07be 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -26,7 +26,7 @@ export let getBinary = async (domainArg: string, optionsArg: interfaces.ISmartRe //so Buffer.concat() can make us a new Buffer //of all of them together const buffer = Buffer.concat(data); - response.body = buffer.toString('base64'); + response.body = buffer.toString('binary'); done.resolve(); }); await done.promise;