Skip to content

Commit fd13a66

Browse files
committed
increase POST limit to avoid Entity Too Large errors
1 parent 43bfec0 commit fd13a66

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pdf-service.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ const app = express();
77
const bodyParser = require('body-parser');
88

99
app.use(bodyParser.json()); // support json encoded bodies
10-
app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies
10+
app.use(bodyParser.urlencoded({
11+
extended: true,
12+
limit: '100mb',
13+
parameterLimit: 1000,
14+
})); // support encoded bodies
1115

1216
let port = 3000;
1317
let calls = {

0 commit comments

Comments
 (0)