diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-10-18 11:15:20 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-10-18 11:34:35 -0700 |
commit | cf1db4f3043fce0474c421dc547b8bd2f9616354 (patch) | |
tree | 13928e0f1d2749c756164119015502ef67c53a9c /lib/buffer.js | |
parent | ccf2a04ea2b004af58a2e599965b08e94bbe47d3 (diff) | |
download | node-cf1db4f3043fce0474c421dc547b8bd2f9616354.tar.gz |
base64 decode should handle whitespace
Diffstat (limited to 'lib/buffer.js')
-rw-r--r-- | lib/buffer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/buffer.js b/lib/buffer.js index ecb25b7e5..e5539581d 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -145,7 +145,7 @@ function Buffer (subject, encoding, offset) { } } else if (type == 'string') { // We are a string - this.write(subject, 0, encoding); + this.length = this.write(subject, 0, encoding); } } |