http: Fix encoding issue in raw file handler

Turns out "content-type: text; charset=utf-8" wasn't valid, it had to be
"content-type: text/plain; charset=utf-8" for browsers to recognise it
properly.
This commit is contained in:
Rūdolfs Ošiņš
2024-11-08 12:08:31 +01:00
parent b3be042b51
commit 9d981f9210
+1 -1
View File
@@ -158,7 +158,7 @@ fn blob_response(
MIMES
.binary_search_by(|(k, _)| k.cmp(&ext))
.map(|k| MIMES[k].1)
.unwrap_or("text; charset=utf-8")
.unwrap_or("text/plain; charset=utf-8")
} else {
"application/octet-stream"
};