Commit 66b4b55f authored by Jérome Perrin's avatar Jérome Perrin

officejs: set response content type explicitly for Web portal types

parent c7963a4f
...@@ -24,13 +24,13 @@ else: ...@@ -24,13 +24,13 @@ else:
# set headers depending on type of script # set headers depending on type of script
if (portal_type == "Web Script"): if (portal_type == "Web Script"):
response.setHeader('Content-Type', 'application/javascript') response.setHeader('Content-Type', 'application/javascript; charset=utf-8')
elif (portal_type == "Web Style"): elif (portal_type == "Web Style"):
response.setHeader('Content-Type', 'text/css') response.setHeader('Content-Type', 'text/css; charset=utf-8')
elif (portal_type == "Web Manifest"): elif (portal_type == "Web Manifest"):
response.setHeader('Content-Type', 'text/cache-manifest') response.setHeader('Content-Type', 'text/cache-manifest; charset=utf-8')
elif (portal_type == "Web Page"): elif (portal_type == "Web Page"):
if (mapping_dict is not None): if (mapping_dict is not None):
......
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