added max post size option
This commit is contained in:
parent
bab1a134a2
commit
a47e87d7bc
4 changed files with 17 additions and 10 deletions
12
app.js
12
app.js
|
@ -114,11 +114,17 @@ app.use(session({
|
|||
app.use(flash());
|
||||
|
||||
app.use(bodyParser.urlencoded({
|
||||
extended: true
|
||||
extended: true,
|
||||
limit: config.www.postsize
|
||||
}));
|
||||
|
||||
app.use(bodyParser.text());
|
||||
app.use(bodyParser.json());
|
||||
app.use(bodyParser.text({
|
||||
limit: config.www.postsize
|
||||
}));
|
||||
|
||||
app.use(bodyParser.json({
|
||||
limit: config.www.postsize
|
||||
}));
|
||||
|
||||
passport.setup(app);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue