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

limit post bodies in verifier. closes #878

parent 4a11d1e6
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,10 @@ app.use(express.logger({ ...@@ -35,6 +35,10 @@ app.use(express.logger({
} }
})); }));
// limit all content bodies to 10kb, at which point we'll forcefully
// close down the connection.
app.use(express.limit("10kb"));
var statsd_config = config.get('statsd'); var statsd_config = config.get('statsd');
if (statsd_config && statsd_config.enabled) { if (statsd_config && statsd_config.enabled) {
logger_statsd = require("connect-logger-statsd"); logger_statsd = require("connect-logger-statsd");
......
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