mirror of
https://github.com/actix/examples
synced 2025-02-21 08:44:48 +01:00
Merge pull request #40 from munckymagik/fix_json_build
Fix json example Travis build failure
This commit is contained in:
commit
13834d8076
@ -110,14 +110,14 @@ fn main() {
|
|||||||
.middleware(middleware::Logger::default())
|
.middleware(middleware::Logger::default())
|
||||||
.resource("/extractor", |r| {
|
.resource("/extractor", |r| {
|
||||||
r.method(http::Method::POST)
|
r.method(http::Method::POST)
|
||||||
.with_config(extract_item, |cfg| {
|
.with_config(extract_item, |(cfg,)| {
|
||||||
cfg.limit(4096); // <- limit size of the payload
|
cfg.limit(4096); // <- limit size of the payload
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.resource("/extractor2", |r| {
|
.resource("/extractor2", |r| {
|
||||||
r.method(http::Method::POST)
|
r.method(http::Method::POST)
|
||||||
.with_config(extract_item_limit, |cfg| {
|
.with_config(extract_item_limit, |((cfg, _),)| {
|
||||||
cfg.0.limit(4096); // <- limit size of the payload
|
cfg.limit(4096); // <- limit size of the payload
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.resource("/manual", |r| r.method(http::Method::POST).f(index_manual))
|
.resource("/manual", |r| r.method(http::Method::POST).f(index_manual))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user