diff --git a/src/main.rs b/src/main.rs index fdb5964..73e8b0b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -55,12 +55,7 @@ async fn handle_request(mut payload: Multipart) -> Result>, let mut data: Vec = Vec::new(); while let Some(field) = payload.next_field().await.unwrap() { - let content_type = field.content_type().unwrap(); - - match content_type { - "image/jpeg" | "image/png" => data = field.bytes().await.unwrap().to_vec(), - _ => return Err(StatusCode::UNSUPPORTED_MEDIA_TYPE.into_response()), - } + data = field.bytes().await.unwrap().to_vec(); } START.call_once(|| magick_wand_genesis());