Skip to content

Commit

Permalink
fix: favicon.ico 404
Browse files Browse the repository at this point in the history
  • Loading branch information
zdz committed Apr 22, 2022
1 parent 24af126 commit b16b196
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "stat_client"
version = "1.3.6"
version = "1.3.7"

authors = ["doge <doge.py@gmail.com>"]
categories = ["monitoring-tools"]
Expand Down
2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "stat_server"
version = "1.3.6"
version = "1.3.7"

authors = ["doge <doge.py@gmail.com>"]
categories = ["monitoring-tools"]
Expand Down
3 changes: 2 additions & 1 deletion server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ async fn main_service_func(req: Request<Body>) -> Result<Response<Body>> {
if req.method() == Method::GET
&& (req_path.starts_with("/js/")
|| req_path.starts_with("/css/")
|| req_path.starts_with("/img/"))
|| req_path.starts_with("/img/")
|| req_path.eq("/favicon.ico"))
{
if let Some(data) = Asset::get(req_path) {
let ct = mime_guess::from_path(req_path);
Expand Down

0 comments on commit b16b196

Please sign in to comment.