server/node_modules/express/node_modules/connect/lib/middleware/limit.js in vulcan-0.2.5 vs server/node_modules/express/node_modules/connect/lib/middleware/limit.js in vulcan-0.3.0

- old
+ new

@@ -41,14 +41,10 @@ // self-awareness if (req._limit) return next(); req._limit = true; // limit by content-length - if (len && len > bytes) { - res.statusCode = 413; - res.end('Request Entity Too Large'); - return; - } + if (len && len > bytes) deny(); // limit req.on('data', function(chunk){ received += chunk.length; if (received > bytes) deny(); \ No newline at end of file