diff --git a/lib/controller/init.js b/lib/controller/init.js index 1e7fb150..03aa4511 100644 --- a/lib/controller/init.js +++ b/lib/controller/init.js @@ -61,7 +61,10 @@ init = { // probably not right if (typeof req.read == 'function') { req.addListener('readable', function (data) { - body += req.read(); + var chunk; + while ((chunk = req.read())) { + body += chunk; + } }); } // Node 0.8, old streams