diff options
| author | Drew DeVault <sir@cmpwn.com> | 2020-09-27 00:46:38 -0400 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2020-09-27 00:46:38 -0400 |
| commit | 1f229ba123a4342418d3af1d485aa34ab6e036db (patch) | |
| tree | 88ac788f64c90b4defa964958c51fae6e383cb02 /src/mime.c | |
| parent | 71bbd1b31530e4ef84e3562425d78450da289d8c (diff) | |
| download | gmnisrv-1f229ba123a4342418d3af1d485aa34ab6e036db.tar.gz gmnisrv-1f229ba123a4342418d3af1d485aa34ab6e036db.tar.xz gmnisrv-1f229ba123a4342418d3af1d485aa34ab6e036db.zip | |
mime: add .xml -> text/xml
Diffstat (limited to 'src/mime.c')
| -rw-r--r-- | src/mime.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"; } |
