diff --git a/lib/wsapi.js b/lib/wsapi.js index 38838543e92687b11b54b989bc4ab28c2bdae8c5..32d82b6dbc1d3e899effe96e504ab0f7ca6f3e52 100644 --- a/lib/wsapi.js +++ b/lib/wsapi.js @@ -143,7 +143,11 @@ exports.setup = function(options, app) { // cookie parsing, nor body parsing - leaving that up to the process we're forwarding // to. if (-1 !== forwardedOperations.indexOf(operation)) { - return next(); + // queue up the body here on and forward a single unchunked request onto the + // writer + return bodyParser(req, resp, function() { + next(); + }); } else { // this is not a forwarded operation, perform full parsing and validation return cookieParser(req, resp, function() {