Permalink
Browse files

call ReadableStream#resume() on the request

in node v0.10, [you must call `resume()` in order to get the 'end'
event][node_zero_ten]. this adds the call on the request handler.

this adds the `resume()` call to the cli. it shouldn't cause any
backwards-incompatible changes.

[node_zero_ten]: http://blog.nodejs.org/2012/12/20/streams2/
  • Loading branch information...
1 parent 937cdf8 commit 5e02b211ff14230854126322b83d21b42f975b71 @aaronj1335 aaronj1335 committed Apr 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/cli.js
View
@@ -97,7 +97,7 @@ require('http').createServer(function (request, response) {
log(request, response);
}
});
- });
+ }).resume();
}).listen(+argv.port);
console.log('serving "' + dir + '" at http://127.0.0.1:' + argv.port);

0 comments on commit 5e02b21

Please sign in to comment.