Add XHTML support

This commit is contained in:
2024-04-22 15:14:31 +02:00
parent 6eaf5f5776
commit 0dd9a9a843
2 changed files with 17 additions and 3 deletions
+4
View File
@@ -75,6 +75,10 @@ static void magic_mime_type(const char *restrict filename, char *buf) {
strcpy(buf, "application/javascript");
sem_post(&sem_magic);
return;
} else if (strends(filename, ".xhtml")) {
strcpy(buf, "application/xhtml+xml");
sem_post(&sem_magic);
return;
}
}