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

- old
+ new

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