Code Review
/
src
/
app-framework-binder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
1a6a680
)
afb-hreq: Add json to known mimetypes
author
Loïc Collignon
<loic.collignon@iot.bzh>
Thu, 30 Nov 2017 10:47:15 +0000
(11:47 +0100)
committer
José Bollo
<jose.bollo@iot.bzh>
Thu, 18 Jan 2018 09:12:00 +0000
(10:12 +0100)
Change-Id: Ic11ebf7e569160dd25e66a1273904dfcd82bdeb8
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
src/afb-hreq.c
patch
|
blob
|
history
diff --git
a/src/afb-hreq.c
b/src/afb-hreq.c
index
5f44cba
..
a8aae40
100644
(file)
--- 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"},