summaryrefslogtreecommitdiff
path: root/include/webassets.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2018-12-20 18:11:04 +0300
committerEd Tanous <ed.tanous@intel.com>2018-12-22 00:35:31 +0300
commit7e51389af31e510d81297189df20c9a6d82d9b25 (patch)
treede6a284f50afd29ce2aa11dc13876ccb6efc2436 /include/webassets.hpp
parenta6acbb3187910fc399152262328ee05e64486da8 (diff)
downloadbmcweb-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.hpp2
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"},