From 10c73fad7f54ac0c02b419426e1aa21d41fd467f Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Fri, 26 Feb 2021 12:04:11 -0800 Subject: [PATCH] Switch favicon to ico --- Cargo.lock | 32 ++++++++++++++++---------------- src/main.rs | 6 +++--- static/favicon.ico | Bin 0 -> 4286 bytes templates/base.html | 2 +- 4 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 static/favicon.ico diff --git a/Cargo.lock b/Cargo.lock index 1fc61b7..9c5aae2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1060,9 +1060,9 @@ checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736" [[package]] name = "js-sys" -version = "0.3.47" +version = "0.3.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cfb73131c35423a367daf8cbd24100af0d077668c8c2943f0e7dd775fef0f65" +checksum = "dc9f84f9b115ce7843d60706df1422a916680bfdfcbdb0447c5614ff9d7e4d78" dependencies = [ "wasm-bindgen", ] @@ -2021,9 +2021,9 @@ checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" [[package]] name = "wasm-bindgen" -version = "0.2.70" +version = "0.2.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55c0f7123de74f0dab9b7d00fd614e7b19349cd1e2f5252bbe9b1754b59433be" +checksum = "7ee1280240b7c461d6a0071313e08f34a60b0365f14260362e5a2b17d1d31aa7" dependencies = [ "cfg-if 1.0.0", "wasm-bindgen-macro", @@ -2031,9 +2031,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.70" +version = "0.2.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bc45447f0d4573f3d65720f636bbcc3dd6ce920ed704670118650bcd47764c7" +checksum = "5b7d8b6942b8bb3a9b0e73fc79b98095a27de6fa247615e59d096754a3bc2aa8" dependencies = [ "bumpalo", "lazy_static", @@ -2046,9 +2046,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.20" +version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3de431a2910c86679c34283a33f66f4e4abd7e0aec27b6669060148872aadf94" +checksum = "8e67a5806118af01f0d9045915676b22aaebecf4178ae7021bc171dab0b897ab" dependencies = [ "cfg-if 1.0.0", "js-sys", @@ -2058,9 +2058,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.70" +version = "0.2.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b8853882eef39593ad4174dd26fc9865a64e84026d223f63bb2c42affcbba2c" +checksum = "e5ac38da8ef716661f0f36c0d8320b89028efe10c7c0afde65baffb496ce0d3b" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2068,9 +2068,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.70" +version = "0.2.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4133b5e7f2a531fa413b3a1695e925038a05a71cf67e87dafa295cb645a01385" +checksum = "cc053ec74d454df287b9374ee8abb36ffd5acb95ba87da3ba5b7d3fe20eb401e" dependencies = [ "proc-macro2", "quote", @@ -2081,15 +2081,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.70" +version = "0.2.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd4945e4943ae02d15c13962b38a5b1e81eadd4b71214eee75af64a4d6a4fd64" +checksum = "7d6f8ec44822dd71f5f221a5847fb34acd9060535c1211b70a05844c0f6383b1" [[package]] name = "web-sys" -version = "0.3.47" +version = "0.3.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c40dc691fc48003eba817c38da7113c15698142da971298003cac3ef175680b3" +checksum = "ec600b26223b2948cedfde2a0aa6756dcf1fef616f43d7b3097aaf53a6c4d92b" dependencies = [ "js-sys", "wasm-bindgen", diff --git a/src/main.rs b/src/main.rs index 90d5515..d11c364 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,9 +71,9 @@ async fn iphone_logo(_req: Request<()>) -> tide::Result { async fn favicon(_req: Request<()>) -> tide::Result { Ok( Response::builder(200) - .content_type("image/png") + .content_type("image/vnd.microsoft.icon") .header("Cache-Control", "public, max-age=1209600, s-maxage=86400") - .body(include_bytes!("../static/favicon.png").as_ref()) + .body(include_bytes!("../static/favicon.ico").as_ref()) .build(), ) } @@ -158,7 +158,7 @@ async fn main() -> tide::Result<()> { .at("/manifest.json/") .get(|_| resource(include_str!("../static/manifest.json"), "application/json", false)); app.at("/robots.txt/").get(|_| resource("User-agent: *\nAllow: /", "text/plain", true)); - app.at("/favicon.png/").get(favicon); + app.at("/favicon.ico/").get(favicon); app.at("/logo.png/").get(pwa_logo); app.at("/touch-icon-iphone.png/").get(iphone_logo); app.at("/apple-touch-icon.png/").get(iphone_logo); diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..364071cadcfb13bf0604a77e1fd502d33925b0c8 GIT binary patch literal 4286 zcmc(jy-piJ6om&!LJ>uY1i^rRFh+tvL4+WVgk%zU5n2#JG{#10Vw8?2-~lMoq~ZmT zA}V*3!3GzG#J5Y@^$}uw>w|kk&)aG@xW6YRCX`S8sLw&$&^PD@^b5N6#4_7>kA2veHkKbZ&2IJC z^r8M9I)rM_4J7x7eb|>aw55;EIBc3-Gy9=D1|2{RNO}})>4UyP$6($^`5p8fk_Qrf z(Wi3^W;@EO5Z|R}rBW$LCX65;#F_?9fIYx^;IXNlWY*v<+mm`Tbw1q!Y z^li-p>UunUN7kJ485R~6s<3Il}c2+&?baW7MYxT#)(5n{Q8f4vdGkNt>$O59>hOB zK9+nw4;3x#?iQp_C`hqbl+DdenVFdhnty@+OK1*aymZF3AbzP-l0+hg{ScFtm648S zXUAlGJTCEg9QP9fzhNSiY{qP7zaakp{ufzV8kMuNXVPpANTbo#&dxB{ZeIZmvaS7Y z_6y@@v!il#^#toubyO@4fuD9hi|N-Wlg->EF5Snk*KK~G5Sg!Y=wtD9{(emUW6yuj z>+b>HKiNI)Kd%1=;FG-#MT$S%|1N$$KP0hOy0r%r3HP1?OFZfL!x$JT{s!@nj$X*d z#%tNy8kY6-5t*LuI)i97uVj)PIsXLl@9vb`-nQe>`T0}izXalc=XuFAb?C8~10&_% zAifz3E0s{bnSaR-J%3cIRV)8%zCZq&{Ax9ne}LF(oT!R;H#>$h&d0jXRag#U+!m z-nYO%_q%oeq&)&>Syq8RdOWS)_vgy0SGJpM;?I?4M)>#;J`3KQg z*K?bE$2@R7@SNIpE{!k_+R_JoIiEXh4Bi^$-sE1bLC!ddb}__0mk@1eYpruX&sB#_ zXRKaXpHmsD8MFB=_1S?roMoL$*hj}T%a4mCr9Qb+>hq0KAAVyg{#5E^O{u{Xr3Om) X*8!z^{Al|V_^QDteUm{JnPmR~>Y!)3 literal 0 HcmV?d00001 diff --git a/templates/base.html b/templates/base.html index b3d9846..db7d34f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -18,7 +18,7 @@ - + {% endblock %}