fix: Include limit in size exceeded error

pull/24376/head
Carol (Nichols || Goulding) 2020-02-14 10:00:35 -05:00
parent 8b1255be9d
commit a16c49537f
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ async fn write(req: Request<Body>, app: Arc<App>) -> Result<Body, ApplicationErr
if (body.len() + chunk.len()) > MAX_SIZE {
return Err(ApplicationError::new(
StatusCode::BAD_REQUEST,
"Body exceeds limit",
"Body exceeds limit of 1MB",
));
}
body.extend_from_slice(&chunk);