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