summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2017-11-30 11:47:15 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2018-01-18 10:12:00 +0100
commit7ac6622e9175764e0ce1eeaeed9a26acee26e42a (patch)
tree16df4e42f3dc9001becaf9867859c956be36df71
parent1a6a680c413b21eeb781a92d0fee7ee6e5fb619b (diff)
afb-hreq: Add json to known mimetypes
Change-Id: Ic11ebf7e569160dd25e66a1273904dfcd82bdeb8 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
-rw-r--r--src/afb-hreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afb-hreq.c b/src/afb-hreq.c
index 5f44cba4..a8aae40d 100644
--- a/src/afb-hreq.c
+++ b/src/afb-hreq.c
@@ -272,6 +272,7 @@ static const char *mimetype_fd_name(int fd, const char *filename)
if (extension) {
static const char *const known[][2] = {
{ ".js", "text/javascript" },
+ { ".json", "application/json" },
{ ".html", "text/html" },
{ ".css", "text/css" },
{ ".ico", "image/x-icon"},