From: Loïc Collignon Date: Thu, 30 Nov 2017 10:47:15 +0000 (+0100) Subject: afb-hreq: Add json to known mimetypes X-Git-Tag: flounder_5.99.1~99 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=7ac6622e9175764e0ce1eeaeed9a26acee26e42a;hp=1a6a680c413b21eeb781a92d0fee7ee6e5fb619b;p=src%2Fapp-framework-binder.git afb-hreq: Add json to known mimetypes Change-Id: Ic11ebf7e569160dd25e66a1273904dfcd82bdeb8 Signed-off-by: Loïc Collignon --- 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"},