diff --git a/depell/src/main.rs b/depell/src/main.rs index 0b234e09..29fda665 100644 --- a/depell/src/main.rs +++ b/depell/src/main.rs @@ -3,7 +3,7 @@ use { argon2::{password_hash::SaltString, PasswordVerifier}, axum::{ body::Bytes, - extract::Path, + extract::{DefaultBodyLimit, Path}, http::{header::COOKIE, request::Parts}, response::{AppendHeaders, Html}, }, @@ -86,7 +86,8 @@ async fn amain() { .as_millis(); move || async move { id.to_string() } }), - ); + ) + .layer(DefaultBodyLimit::max(16 * 1024)); #[cfg(feature = "tls")] {