Changing image to image/
This commit is contained in:
parent
062be5dcf2
commit
f35e040a34
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue