summaryrefslogtreecommitdiffstats
path: root/src/afb-hreq.c
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-02-22 11:24:14 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-02-22 11:24:14 +0100
commit13bd63c1bd4055cba1316042267b31c4776af256 (patch)
treeffa3f40fb12cd122be1066606527dc05e9b7ef39 /src/afb-hreq.c
parenta8c1c8889910ae3b3439346dd1a9dfbd13c8f31b (diff)
Enable INFER_EXTENSION and add well-known mime types.
Change-Id: I7c433eea63c01d2b0813a9cc84c12433839bf125 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'src/afb-hreq.c')
-rw-r--r--src/afb-hreq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/afb-hreq.c b/src/afb-hreq.c
index b2180458..5052cca9 100644
--- a/src/afb-hreq.c
+++ b/src/afb-hreq.c
@@ -280,6 +280,10 @@ static const char *mimetype_fd_name(int fd, const char *filename)
{ ".js", "text/javascript" },
{ ".html", "text/html" },
{ ".css", "text/css" },
+ { ".ico", "image/x-icon"},
+ { ".png", "image/png" },
+ { ".svg", "image/svg+xml" },
+ { ".ttf", "application/x-font-ttf"},
{ NULL, NULL }
};
int i = 0;