From f35e040a34e1d25a509f578c05b705d7e7ee3ebc Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 12 May 2020 15:21:52 -0400 Subject: [PATCH] Changing image to image/ --- server/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/lib.rs b/server/src/lib.rs index 9c0cc9cb3..d1531d7e0 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -79,7 +79,7 @@ pub fn is_image_content_type(test: &str) -> Result<(), failure::Error> { .get("Content-Type") .ok_or_else(|| format_err!("No Content-Type header"))? .to_str()? - .starts_with("image") + .starts_with("image/") { Ok(()) } else {