From a16c49537feea93d00dc45c6684fe0d24f92195b Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Fri, 14 Feb 2020 10:00:35 -0500 Subject: [PATCH] fix: Include limit in size exceeded error --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index b97833b297..ec6196f59e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -78,7 +78,7 @@ async fn write(req: Request, app: Arc) -> Result MAX_SIZE { return Err(ApplicationError::new( StatusCode::BAD_REQUEST, - "Body exceeds limit", + "Body exceeds limit of 1MB", )); } body.extend_from_slice(&chunk);