fix(core): update

This commit is contained in:
Philipp Kunz 2018-06-15 00:00:55 +02:00
parent 9c69fb6c1c
commit 980ea344e7
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -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;

View File

@ -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;