diff --git a/lib/server.c b/lib/server.c index c8a8b4cc..7f79ad25 100644 --- a/lib/server.c +++ b/lib/server.c @@ -315,6 +315,9 @@ lws_get_mimetype(const char *file, const struct lws_http_mount *m) if (!strcmp(&file[n - 4], ".txt")) return "text/plain"; + if (!strcmp(&file[n - 4], ".svg")) + return "image/svg+xml"; + if (!strcmp(&file[n - 4], ".ttf")) return "application/x-font-ttf";