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 5a247a57d2
commit a2241384e7

View file

@ -266,6 +266,9 @@ 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";