fixed zip filetype
All checks were successful
Restart Website Service / restart_service (push) Successful in 35s
All checks were successful
Restart Website Service / restart_service (push) Successful in 35s
This commit is contained in:
parent
c2a13c1436
commit
8c0fa67a22
|
@ -95,6 +95,7 @@ fn get_mime_type<'a>(extension: Option<&'a OsStr>) -> String {
|
||||||
Some("html") => "text/html".to_string(),
|
Some("html") => "text/html".to_string(),
|
||||||
Some("png") => "image/png".to_string(),
|
Some("png") => "image/png".to_string(),
|
||||||
Some("ico") => "image/vnd.microsoft.icon".to_string(),
|
Some("ico") => "image/vnd.microsoft.icon".to_string(),
|
||||||
|
Some("zip") => "application/zip, application/octet-stream".to_string(),
|
||||||
_ => "text/text".to_string(),
|
_ => "text/text".to_string(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue