geforkt von mirrored/vaultwarden
Set correct MIME type
Dieser Commit ist enthalten in:
Ursprung
8526055bb7
Commit
84fb6aaddb
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -66,7 +66,7 @@ fn alive() -> Json<String> {
|
||||||
|
|
||||||
#[get("/images/<filename>")]
|
#[get("/images/<filename>")]
|
||||||
fn images(filename: String) -> Result<Content<Vec<u8>>, Error> {
|
fn images(filename: String) -> Result<Content<Vec<u8>>, Error> {
|
||||||
let image_type = ContentType::new("image", "x-icon");
|
let image_type = ContentType::new("image", "png");
|
||||||
match filename.as_ref() {
|
match filename.as_ref() {
|
||||||
"mail-github.png" => Ok(Content(image_type , include_bytes!("../static/images/mail-github.png").to_vec())),
|
"mail-github.png" => Ok(Content(image_type , include_bytes!("../static/images/mail-github.png").to_vec())),
|
||||||
"logo-gray.png" => Ok(Content(image_type, include_bytes!("../static/images/logo-gray.png").to_vec())),
|
"logo-gray.png" => Ok(Content(image_type, include_bytes!("../static/images/logo-gray.png").to_vec())),
|
||||||
|
|
Laden …
In neuem Issue referenzieren