Skip to content

Commit

Permalink
Fix for compatibility with new node streams
Browse files Browse the repository at this point in the history
  • Loading branch information
edpaget committed Mar 14, 2013
1 parent f1dbda9 commit db46cb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ require('http').createServer(function (request, response) {
}
});
});
request.resume();
}).listen(+argv.port);

console.log('serving "' + dir + '" at http://127.0.0.1:' + argv.port);
Expand Down
2 changes: 2 additions & 0 deletions test/integration/node-static-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ suite.addBatch({
else
request.end();
});
request.resume();
});
}).listen(TEST_PORT, this.callback)
},
Expand Down Expand Up @@ -61,6 +62,7 @@ suite.addBatch({
request.addListener('end', function () {
fileServer.serve(request, response);
});
request.resume();
}).listen(TEST_PORT, this.callback)
},
'should be listening' : function(){
Expand Down

0 comments on commit db46cb1

Please sign in to comment.