From 0bfb5bd0c8677c8ca745b2dad65d7f41f8b93a4c Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 20 Feb 2012 14:44:50 -0700 Subject: [PATCH] Not using the deprecated / broken api (assuming that it was working before) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 72ddb40..341c346 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,7 @@ "use strict"; function atob(str) { - return new Buffer(str, 'base64').toString('utf8'); + return new Buffer(str).toString('base64'); } module.exports = atob;