Skip to content

Commit

Permalink
Use 3 MB for Lambda text/plain POST limit
Browse files Browse the repository at this point in the history
The Lambda response is hard-limited to 6 MB, and API JSON is more
verbose than BibTeX or RIS, so we need a lower input limit to stay below
the response limit.
  • Loading branch information
dstillman committed Dec 11, 2023
1 parent 59369c6 commit 90d35da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ app.use(
bodyParser({
enableTypes: ['text', 'json'],
jsonLimit: '5mb',
textLimit: '5mb',
textLimit: '3mb',
})
);
app.use(_.post('/web', WebEndpoint.handle.bind(WebEndpoint)));
Expand Down

0 comments on commit 90d35da

Please sign in to comment.