Update src/server/http.rs

This commit is contained in:
Григорий Сафронов 2025-09-12 10:24:33 +00:00
parent bbe9322c94
commit 05bf2b7294

View File

@ -186,6 +186,10 @@ fn get_content_type(file_path: &str) -> &'static str {
"audio/mpeg"
} else if file_path.ends_with(".mp4") {
"video/mp4"
} else if file_path.ends_with(".pdf") {
"application/pdf"
} else if file_path.ends_with(".md") {
"text/markdown"
} else {
"text/plain"
}