This commit is contained in:
sujang958 2021-09-01 14:38:47 +00:00
parent 19e0da6568
commit 32bc87be71
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
if (str instanceof Buffer) {
buffer = str;
} else {
buffer = Buffer.from(str.toString(), 'binary');
buffer = Buffer.from(String(str), 'binary');
}
return buffer.toString('base64');