Skip to content

fix: limit incoming request body size - #22

Merged
wjc2821296948 merged 2 commits into
Low-Rate:mainfrom
lijiashu1:fix/limit-request-body-size
Oct 20, 2026
Merged

wjc2821296948 merged 2 commits into
Low-Rate:mainfrom
lijiashu1:fix/limit-request-body-size

Conversation

@lijiashu1

Copy link
Copy Markdown
Member

Summary

  • Cap incoming JSON request bodies at 1 MiB to prevent unbounded buffering from exhausting server memory.
  • Return a safe 413 REQUEST_TOO_LARGE response for oversized requests without exposing internal error details.
  • Add an integration regression test for oversized anonymous-auth requests.

Validation

  • Added a regression test; GitHub Actions will run syntax checks and npm test.

@wjc2821296948 wjc2821296948 self-assigned this Oct 20, 2026
@wjc2821296948
wjc2821296948 merged commit 14958fa into Low-Rate:main Oct 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants