summaryrefslogtreecommitdiff
path: root/include/webassets.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2018-08-14 21:20:42 +0300
committerEd Tanous <ed.tanous@intel.com>2018-08-24 22:40:53 +0300
commitb39db7142f9b576e53a81bbef8424f2478c4fff2 (patch)
tree733ac021226891ce7852bdabb9973936fa1583a3 /include/webassets.hpp
parentb79d4eef01f5fd2a24bb8dd28792810aa718cdee (diff)
downloadbmcweb-b39db7142f9b576e53a81bbef8424f2478c4fff2.tar.xz
Add json to the known content types
Recently the odata endpoint has been implemented as a static file. This adds the appropriate content type to the map, so that we can return the appropriate header. Fixes the error: Cannot determine content-type for "/usr/share/www/redfish/v1/odata/index.json" with extension .json Change-Id: Ia6d55c9644c344a2d1957b878bfc25a994e8678b
Diffstat (limited to 'include/webassets.hpp')
-rw-r--r--include/webassets.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/webassets.hpp b/include/webassets.hpp
index 161fc506f3..816d5430c0 100644
--- a/include/webassets.hpp
+++ b/include/webassets.hpp
@@ -41,6 +41,7 @@ void requestRoutes(Crow<Middlewares...>& app) {
{".xml", "application/xml"},
{".jpg", "image/jpeg"},
{".jpeg", "image/jpeg"},
+ {".json", "application/json"},
// dev tools don't care about map type, setting to json causes
// browser to show as text
// https://stackoverflow.com/questions/19911929/what-mime-type-should-i-use-for-javascript-source-map-files