bmcweb: Resolve issue with MIME type on redfish
The Redfish UI isn't presented properly with the latest security changes
because the MIME type wasn't explicitly set. This resolves it, by
adding an MIME type to redfish.
Change-Id: Ic1b0c0bd6fb2b8b6b4d9393127e3e606ad7cb655
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/crow/include/crow/http_connection.h b/crow/include/crow/http_connection.h
index 569f15e..51bc9fe 100644
--- a/crow/include/crow/http_connection.h
+++ b/crow/include/crow/http_connection.h
@@ -53,6 +53,7 @@
"</div>\n"
"</body>\n"
"</html>\n";
+ res.addHeader("Content-Type", "text/html;charset=UTF-8");
}
using namespace boost;