Add SVG to lws_get_mimetype()
This commit is contained in:
parent
0c984014f0
commit
e468e15a2b
1 changed files with 3 additions and 0 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue