Add SVG to lws_get_mimetype()

This commit is contained in:
Patrick Gansterer 2016-09-23 00:04:40 +02:00 committed by Andy Green
parent 0c984014f0
commit e468e15a2b

View file

@ -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";