Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
test: do not convert incoming Buffer to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Blasnik committed Aug 11, 2015
1 parent 3219ad3 commit 552a002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test-http-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 552a002

Please sign in to comment.