From 980ea344e7c0b73103b2369f8a4c1d8626332a48 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 15 Jun 2018 00:00:55 +0200 Subject: [PATCH] fix(core): update --- dist/index.js | 2 +- ts/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;