Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respond with "413 Payload too large" when max upload size is exceeded #7880

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jan 5, 2024

This PR changes our BytesRequest implementation to respond with a "413 Payload too large" status code if the maximum request body size is exceeded. It also adjusts our publish endpoint to return the same status code if the per-crate size limit is exceeded.

Related:

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-backend ⚙️ labels Jan 5, 2024
@Turbo87 Turbo87 merged commit 7dd274b into rust-lang:main Jan 5, 2024
6 checks passed
@Turbo87 Turbo87 deleted the payload-too-large branch January 5, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant