From 7ac6622e9175764e0ce1eeaeed9a26acee26e42a Mon Sep 17 00:00:00 2001
From: Loïc Collignon <loic.collignon@iot.bzh>
Date: Thu, 30 Nov 2017 11:47:15 +0100
Subject: afb-hreq: Add json to known mimetypes
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Change-Id: Ic11ebf7e569160dd25e66a1273904dfcd82bdeb8
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
---
 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"},
-- 
cgit