Skip to content

engine: increase payload limit from 2mb to 15mb #572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions refact-agent/engine/src/http/routers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use axum::extract::DefaultBodyLimit;
use axum::Router;
use axum::routing::get;

Expand All @@ -13,4 +14,5 @@ pub fn make_refact_http_server() -> Router {
.nest("/v1", v1::make_v1_router())
.nest("/db_v1", v1::make_db_v1_router())
.route("/build_info", get(info::handle_info))
.layer(DefaultBodyLimit::max(2usize.pow(20) * 15)) // new limit of payload 15MB(default: 2MB)
}