Permalink
Browse files

Merge pull request #186 from rvagg/streams2

req.resume(); for http streams2 compat - as per request by @nathan7
  • Loading branch information...
2 parents 7370587 + 04dc713 commit 6d55355c5625302b31d33334cee50e69d928c125 @yawnt yawnt committed Mar 16, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/director/http/index.js
@@ -187,6 +187,9 @@ Router.prototype.dispatch = function (req, res, callback) {
// the end event and then continue
//
req.once('end', parseAndInvoke);
+ // Streams2 requires us to start the stream if we're not explicitly
+ // reading from it.
+ req.resume();
}
else {
//

0 comments on commit 6d55355

Please sign in to comment.