From e468e15a2b3ef512e80c814c8863eb3d74b6a4dc Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Fri, 23 Sep 2016 00:04:40 +0200 Subject: [PATCH] Add SVG to lws_get_mimetype() --- lib/server.c | 3 +++ 1 file changed, 3 insertions(+) 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";