Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(host): limit body size using DefaultBodyLimit (#437)
The original implementation of check_max_body_size relied on the size_hint provided by Axum. However, we've encountered instances where check_max_body_size incorrectly returns a BAD_REQUEST response due to inaccurate size_hint values. This commit changes to use `DefaultBodyLimit`, which is the suggestion by axum. See also - tokio-rs/axum#1400 - tokio-rs/axum#1397
- Loading branch information