-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Json extractor to be 32kB by default
While technically the default limit for `JsonBody` is indeed 256kB when called through `JsonBody::new`, in practice the limit is always set to 32kB for every context where `JsonBody` is used (via `JsonConfig`). This is also consistent with the documentation of the `JsonError::Overflow`, which mentions a default maximum of `32kB`. This commit changes the default to also be `32kB` instead of `256kB`.
- Loading branch information
1 parent
1838d9c
commit 0501193
Showing
2 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters