Closed rarescosma closed 3 months ago
file.contents_utf8() fails for binary files so then .unwrap_or_default() returns the empty string, which was causing the favicon to always fail to load.
file.contents_utf8()
.unwrap_or_default()
Fixed to use file.contents().to_vec() instead and factored out the response builder.
file.contents().to_vec()
Thank you!
file.contents_utf8()
fails for binary files so then.unwrap_or_default()
returns the empty string, which was causing the favicon to always fail to load.Fixed to use
file.contents().to_vec()
instead and factored out the response builder.