From 1f229ba123a4342418d3af1d485aa34ab6e036db Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 27 Sep 2020 00:46:38 -0400 Subject: [PATCH] mime: add .xml -> text/xml --- src/mime.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mime.c b/src/mime.c index 5722357..1a60ae0 100644 --- a/src/mime.c +++ b/src/mime.c @@ -23,6 +23,9 @@ gmnisrv_mimetype_for_path(const char *path) if (has_suffix(path, ".txt")) { return "text/plain"; } + if (has_suffix(path, ".xml")) { + return "text/xml"; + } if (has_suffix(path, ".png")) { return "image/png"; }