Commit 944ffe51 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_web_renderjs_ui: WebPage_viewAsWeb now use web page content type

parent 3cf4d7f7
......@@ -41,6 +41,6 @@ else:
# Only fetch code (html, js, css, image) and data from this ERP5, to prevent any data leak as the web site do not control the gadget's code
response.setHeader("Content-Security-Policy", content_security_policy)
response.setHeader('Content-Type', 'text/html')
response.setHeader('Content-Type', web_page.getContentType('text/html'))
return web_content
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment