mirror of
https://github.com/zyllian/zyllian.github.io.git
synced 2025-01-18 03:32:30 -08:00
fix serving non-text files
This commit is contained in:
parent
19ffac4a90
commit
cd995ccba8
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ impl Site {
|
||||||
|
|
||||||
if p.exists() {
|
if p.exists() {
|
||||||
let mut res = Response::new("".into());
|
let mut res = Response::new("".into());
|
||||||
match std::fs::read_to_string(&p) {
|
match std::fs::read(&p) {
|
||||||
Ok(body) => {
|
Ok(body) => {
|
||||||
*res.body_mut() = body.into();
|
*res.body_mut() = body.into();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue