Skip to content

Commit

Permalink
fix: adjust bodyParser limit to 50mb #133
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Mollweide committed Dec 15, 2019
1 parent df40113 commit 2081245
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/tunnel.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var logFunc = function () {
}
};

app.use(bodyParser.json());
app.use(bodyParser.json({ limit: '50mb' }));
app.use(bodyParser.urlencoded({ extended: true }));
app.use(cookieParser());

Expand Down
2 changes: 1 addition & 1 deletion lib/controller/AppController.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ AppController.prototype = extend(AppController.prototype, {

app.use('/src', express.static(__dirname + '/../../src'));
app.use('/node_modules', express.static(__dirname + '/../../node_modules'));
app.use(bodyParser.json());
app.use(bodyParser.json({ limit: '50mb' }));
app.use(bodyParser.urlencoded({ extended: true }));
app.set('view engine', 'ejs');
app.set('views', __dirname + '/../../views');
Expand Down

0 comments on commit 2081245

Please sign in to comment.