From 84fb6aaddbb4665e481f1e7f3d5dd393dc88a34a Mon Sep 17 00:00:00 2001 From: TheMardy Date: Sun, 17 Feb 2019 01:08:24 +0100 Subject: [PATCH] Set correct MIME type --- src/api/web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/web.rs b/src/api/web.rs index 5c341cc..0c60a35 100644 --- a/src/api/web.rs +++ b/src/api/web.rs @@ -66,7 +66,7 @@ fn alive() -> Json { #[get("/images/")] fn images(filename: String) -> Result>, Error> { - let image_type = ContentType::new("image", "x-icon"); + let image_type = ContentType::new("image", "png"); match filename.as_ref() { "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())),