diff --git a/src/favicon.png b/src/favicon.png deleted file mode 100644 index 3ef7f6b..0000000 Binary files a/src/favicon.png and /dev/null differ diff --git a/src/web.rs b/src/web.rs index 92c5fd6..8630843 100644 --- a/src/web.rs +++ b/src/web.rs @@ -44,7 +44,6 @@ pub async fn run(bind_addr: &str, root: &PathBuf) -> std::io::Result<()> { App::new() .app_data(root_.clone()) .wrap(middleware::Logger::default()) - .service(favicon_ico) .service(static_files) }) .bind(bind_addr)? @@ -53,13 +52,3 @@ pub async fn run(bind_addr: &str, root: &PathBuf) -> std::io::Result<()> { log::info!("Serving files from {:?}", &root); s.await } - -const FAVICON_ICO: &[u8] = include_bytes!("favicon.png"); - -#[get("/favicon.ico")] -async fn favicon_ico() -> impl Responder { - HttpResponse::Ok() - .content_type("image/png") - .append_header(("Cache-Control", "only-if-cached, max-age=86400")) - .body(FAVICON_ICO) -}