bug fix #4

Open
Ghost wants to merge 1 commits from (deleted):master into master
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');