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

feat: Allow configuring the max body size #153

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

AllexVeldman
Copy link
Owner

The body size limit can now be set using PYOCI_MAX_BODY. Defaults to 50MB.

fix: Return HTTP 413 Payload Too Large instead of 500

@AllexVeldman AllexVeldman added the enhancement New feature or request label Jan 13, 2025
@AllexVeldman AllexVeldman self-assigned this Jan 13, 2025
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

Attention: Patch coverage is 88.88889% with 7 lines in your changes missing coverage. Please review.

Project coverage is 95.99%. Comparing base (2984aa8) to head (15b420b).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/main.rs 20.00% 4 Missing ⚠️
src/app.rs 94.54% 3 Missing ⚠️
Additional details and impacted files

The body size limit can now be set using `PYOCI_MAX_BODY`.
Defaults to 50MB.

fix: Return HTTP 413 Payload Too Large instead of 500
@AllexVeldman AllexVeldman merged commit 852818f into main Jan 13, 2025
6 checks passed
@AllexVeldman AllexVeldman deleted the fix/body-limit-error branch January 13, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant