vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 84fb6aaddbb4665e481f1e7f3d5dd393dc88a34a
parent 8526055bb77d3ef6bab019cfe8e8f66217f9eb2d
Author: TheMardy <martijnhanegraaf@hotmail.nl>
Date:   Sun, 17 Feb 2019 01:08:24 +0100

Set correct MIME type

Diffstat:
Msrc/api/web.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/web.rs b/src/api/web.rs @@ -66,7 +66,7 @@ fn alive() -> Json<String> { #[get("/images/<filename>")] 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() { "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())),