Skip to content

Limit HTTP body lengths before io.ReadAll - #193

Merged
m13253 merged 1 commit into
masterfrom
fix/http-body-size-validation
Nov 22, 2026
Merged

m13253 merged 1 commit into
masterfrom
fix/http-body-size-validation

Conversation

@m13253

@m13253 m13253 commented Nov 22, 2026

Copy link
Copy Markdown
Owner

application/dns-udpwireformat is limited to 64 KiB; application/json is limited to 1 MiB.
The respective reasons to choose such sizes are listed in the comments.
So, if any response is too large it doesn’t blow up the server or the client.

@m13253
m13253 merged commit 5314c82 into master Nov 22, 2026
5 checks passed
@m13253
m13253 deleted the fix/http-body-size-validation branch November 22, 2026 07:30
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.

1 participant