diff options
author | Ed Tanous <ed.tanous@intel.com> | 2018-12-20 18:11:04 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2018-12-22 00:35:31 +0300 |
commit | 7e51389af31e510d81297189df20c9a6d82d9b25 (patch) | |
tree | de6a284f50afd29ce2aa11dc13876ccb6efc2436 /include/webassets.hpp | |
parent | a6acbb3187910fc399152262328ee05e64486da8 (diff) | |
download | bmcweb-7e51389af31e510d81297189df20c9a6d82d9b25.tar.xz |
bmcweb: Fix content type for javascript files
Somehow we got the content type wrong on javascript files, which became
apparent when the content security patches were coming out.
This patchset corrects the string.
Tested By:
Opened webui in chrome, and inspected the javascript files. content
type was correct.
Change-Id: I9ba706d5b919bf4c6365d01853c978b1616913d4
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'include/webassets.hpp')
-rw-r--r-- | include/webassets.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/webassets.hpp b/include/webassets.hpp index 1c2fa3e8c3..81bed50e73 100644 --- a/include/webassets.hpp +++ b/include/webassets.hpp @@ -34,7 +34,7 @@ template <typename... Middlewares> void requestRoutes(Crow<Middlewares...>& app) contentTypes{ {{".css", "text/css;charset=UTF-8"}, {".html", "text/html;charset=UTF-8"}, - {".js", "text/html;charset=UTF-8"}, + {".js", "application/javascript;charset=UTF-8"}, {".png", "image/png;charset=UTF-8"}, {".woff", "application/x-font-woff"}, {".woff2", "application/x-font-woff2"}, |