Unverified Commit 08b8c0c3 authored by Chang Su's avatar Chang Su Committed by GitHub
Browse files

[router] fix axum default body limit (#10818)

parent d42975c6
......@@ -477,6 +477,7 @@ pub fn build_app(
.merge(public_routes)
.merge(admin_routes)
.merge(worker_routes)
.layer(axum::extract::DefaultBodyLimit::max(max_payload_size))
.layer(tower_http::limit::RequestBodyLimitLayer::new(
max_payload_size,
))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment