add additional mimetypes

master
Drake 2 years ago
parent 766b77f096
commit c282094e9e

@ -39,6 +39,11 @@ int getMime(char** mime, char* filename) {
} else if (!strcmp(dot, ".ico")) {
*mime = "image/vnd.microsoft.icon";
return 1;
} else if (!strcmp(dot, ".png")) {
*mime = "image/png";
return 1;
} else if (!strcmp(dot, ".json")) {
*mime = "application/json";
} else {
warn("mimetype for %s not found\n", filename);
*mime = "text/plain";

Loading…
Cancel
Save