actix-web/src
Janis Goldschmidt 05011930bb
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`.
2021-02-18 15:35:47 +01:00
..
middleware use rcgen for tls key generation (#1989) 2021-02-13 17:16:36 +00:00
types Fix Json extractor to be 32kB by default 2021-02-18 15:35:47 +01:00
app.rs change rustfmt line width to 96 2021-02-11 23:03:17 +00:00
app_service.rs change rustfmt line width to 96 2021-02-11 23:03:17 +00:00
config.rs change rustfmt line width to 96 2021-02-11 23:03:17 +00:00
data.rs change rustfmt line width to 96 2021-02-11 23:03:17 +00:00
error.rs optional cookies features (#1981) 2021-02-13 15:08:43 +00:00
extract.rs response header rework (#1869) 2021-01-15 02:11:10 +00:00
guard.rs hide httpmessage mod 2021-02-11 22:58:40 +00:00
handler.rs Use immutable reference of service state. Update awc dns resolver. (#1905) 2021-02-07 01:00:40 +00:00
info.rs response header rework (#1869) 2021-01-15 02:11:10 +00:00
lib.rs use rcgen for tls key generation (#1989) 2021-02-13 17:16:36 +00:00
request.rs use rcgen for tls key generation (#1989) 2021-02-13 17:16:36 +00:00
request_data.rs Use immutable reference of service state. Update awc dns resolver. (#1905) 2021-02-07 01:00:40 +00:00
resource.rs change rustfmt line width to 96 2021-02-11 23:03:17 +00:00
responder.rs change rustfmt line width to 96 2021-02-11 23:03:17 +00:00
rmap.rs use ahash for internal hashmaps 2021-01-04 04:29:07 +00:00
route.rs change rustfmt line width to 96 2021-02-11 23:03:17 +00:00
scope.rs change rustfmt line width to 96 2021-02-11 23:03:17 +00:00
server.rs change rustfmt line width to 96 2021-02-11 23:03:17 +00:00
service.rs change rustfmt line width to 96 2021-02-11 23:03:17 +00:00
test.rs use rcgen for tls key generation (#1989) 2021-02-13 17:16:36 +00:00
web.rs prepare beta 2 release set (#1975) 2021-02-10 12:10:03 +00:00