Skip to content

Commit

Permalink
增加文本的POST body大小限制
Browse files Browse the repository at this point in the history
Close #38
  • Loading branch information
TransparentLC committed Jun 7, 2024
1 parent 3709b84 commit 15e4993
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server-node/app/http-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ router.get('/server', async ctx => {
router.post(
'/text',
koaBody({
enableTypes: ['text'],
multipart: false,
urlencoded: false,
text: true,
json: false,
textLimit: 1048576,
}),
async ctx => {
/** @type {String} */
Expand Down

0 comments on commit 15e4993

Please sign in to comment.