Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
66b4b55f
Commit
66b4b55f
authored
Sep 07, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
officejs: set response content type explicitly for Web portal types
parent
c7963a4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/WebPage_viewAsWeb.py
...em/portal_skins/erp5_web_officejs_ui/WebPage_viewAsWeb.py
+3
-3
No files found.
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/WebPage_viewAsWeb.py
View file @
66b4b55f
...
...
@@ -24,13 +24,13 @@ else:
# set headers depending on type of 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"
):
response
.
setHeader
(
'Content-Type'
,
'text/css'
)
response
.
setHeader
(
'Content-Type'
,
'text/css
; charset=utf-8
'
)
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"
):
if
(
mapping_dict
is
not
None
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment