Skip to content
Snippets Groups Projects
Commit e5f3807c authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

queue up post bodies on browserid before forwarding to dbwriter

parent 0d157217
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment