From 4ccd858fc4699cd312f6ce5f2b423389dd6ce949 Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Sat, 12 Sep 2015 10:47:48 +0530 Subject: [PATCH] buffer: consider deprecated raws as valid encoding Even though `raws` is a deprecated encoding, it is still valid as per `ParseEncoding` in `node.cc`. --- lib/buffer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/buffer.js b/lib/buffer.js index 39cd5f9e58b9f8..a32484d3e36f0f 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -185,6 +185,7 @@ Buffer.isEncoding = function(encoding) { case 'utf16le': case 'utf-16le': case 'raw': + case 'raws': return true; default: