From 7ac6622e9175764e0ce1eeaeed9a26acee26e42a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lo=C3=AFc=20Collignon?= Date: Thu, 30 Nov 2017 11:47:15 +0100 Subject: [PATCH] afb-hreq: Add json to known mimetypes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ic11ebf7e569160dd25e66a1273904dfcd82bdeb8 Signed-off-by: Loïc Collignon --- src/afb-hreq.c | 1 + 1 file changed, 1 insertion(+) 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"}, -- 2.16.6