diff --git a/server/src/lib.rs b/server/src/lib.rs index 0647a70..f8d9ccc 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -206,6 +206,7 @@ impl Server { let inner = Arc::clone(&self.inner); let post_route = warp::path::end() .and(warp::post()) + .and(warp::body::content_length_limit(1024 * 1024)) .and(warp::body::bytes()) .and_then(move |body: Bytes| { let inner = Arc::clone(&inner);