Skip to content

Prevent inherited body size checks in internal subrequests - #125

Merged
route443 merged 2 commits into
mainfrom
large_post
Mar 27, 2026
Merged

Prevent inherited body size checks in internal subrequests#125
route443 merged 2 commits into
mainfrom
large_post

Conversation

@route443

Copy link
Copy Markdown
Contributor

Large authenticated POST requests could fail with HTTP 500 error even when the target location allowed the request body size. The issue was caused by internal subrequests inheriting the parent request body length and being checked against client_max_body_size in non-interactive internal locations.

This change disables body size enforcement for those internal subrequest locations by setting client_max_body_size 0;.

Fixes #100

@route443
route443 merged commit 838c223 into main Mar 27, 2026
2 checks passed
@route443 route443 self-assigned this Mar 27, 2026
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.

POST requests with large bodies fail on subrequest to /_jwks_uri

1 participant