Changing image to image/

This commit is contained in:
Dessalines 2020-05-12 15:21:52 -04:00
parent 062be5dcf2
commit f35e040a34

View file

@ -79,7 +79,7 @@ pub fn is_image_content_type(test: &str) -> Result<(), failure::Error> {
.get("Content-Type") .get("Content-Type")
.ok_or_else(|| format_err!("No Content-Type header"))? .ok_or_else(|| format_err!("No Content-Type header"))?
.to_str()? .to_str()?
.starts_with("image") .starts_with("image/")
{ {
Ok(()) Ok(())
} else { } else {