Permalink
Browse files

req.resume(); for http streams2 compat

  • Loading branch information...
1 parent 7370587 commit 04dc7133e2643d7ae51f5da67b0eb03a313836fe @rvagg rvagg 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 04dc713

Please sign in to comment.