mirror of
https://git.sr.ht/~sircmpwn/gmnisrv
synced 2024-12-04 14:46:42 -05:00
mime: add .xml -> text/xml
This commit is contained in:
parent
71bbd1b315
commit
1f229ba123
@ -23,6 +23,9 @@ gmnisrv_mimetype_for_path(const char *path)
|
|||||||
if (has_suffix(path, ".txt")) {
|
if (has_suffix(path, ".txt")) {
|
||||||
return "text/plain";
|
return "text/plain";
|
||||||
}
|
}
|
||||||
|
if (has_suffix(path, ".xml")) {
|
||||||
|
return "text/xml";
|
||||||
|
}
|
||||||
if (has_suffix(path, ".png")) {
|
if (has_suffix(path, ".png")) {
|
||||||
return "image/png";
|
return "image/png";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user