Return 'text/gemini' if no file extension

This commit is contained in:
int 80h
2020-05-02 18:33:28 -04:00
parent 36036dc716
commit 82245b4778

View File

@@ -43,7 +43,7 @@ fn get_mime(path: &PathBuf) -> String {
let ext = match path.extension() {
Some(p) => p.to_str().unwrap(),
None => mime,
None => return mime.to_string(),
};
if ext != "gemini" {
m = mime_guess::from_ext(ext).first().unwrap();