From 552a002527327e944f8292d09bdcecce81fe1e1c Mon Sep 17 00:00:00 2001 From: Christopher Blasnik Date: Tue, 11 Aug 2015 18:30:14 +0200 Subject: [PATCH] test: do not convert incoming Buffer to string --- test/test-http-json.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-http-json.js b/test/test-http-json.js index 1c3016b..f1c47b6 100644 --- a/test/test-http-json.js +++ b/test/test-http-json.js @@ -51,7 +51,7 @@ suite('http:json', function() { var data_ = []; response.on('readable', function() { - data_.push(new Buffer(response.read()).toString('utf8')); + data_.push(new Buffer(response.read())); }); response.on('end', function() { @@ -121,7 +121,7 @@ suite('http:json', function() { var data_ = []; response.on('readable', function() { - data_.push(new Buffer(response.read()).toString('utf8')); + data_.push(new Buffer(response.read())); }); response.on('end', function() {