From 469de77609a2a20a2b24b6f455538e03636cf67a Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 24 May 2021 09:22:41 +0100 Subject: [PATCH] Enlarge web body input size from 1KiB to 1MiB --- src/web/import.rs | 2 +- src/web/key.rs | 8 ++++---- src/web/signin.rs | 2 +- src/web/signup.rs | 2 +- src/web/sql.rs | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/web/import.rs b/src/web/import.rs index d7e9b2f7..0e9342f8 100644 --- a/src/web/import.rs +++ b/src/web/import.rs @@ -9,7 +9,7 @@ pub fn config() -> impl Filter impl Filter impl Filter impl Filter impl Filter impl Filter(http::header::CONTENT_TYPE.as_str())) - .and(warp::body::content_length_limit(1024 * 1)) // 1MiB + .and(warp::body::content_length_limit(1024 * 1024 * 1)) // 1MiB .and(warp::body::bytes()) .and_then(handler); // Set sock method