remove favicon

This commit is contained in:
Lilith Ashley Nyx Arson 🔥 2024-11-07 15:03:49 +01:00
parent 91fee3387a
commit 37cfeaebec
Signed by: lilith
SSH key fingerprint: SHA256:LAjgsAMyT3LO2JVtr6fQ4N3RTYoRRlIm5wAKsbDife4
2 changed files with 0 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 KiB

View file

@ -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)
}