Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Titouan Soulard
erp5
Commits
b05f38f8
Commit
b05f38f8
authored
2 years ago
by
Cédric Le Ninivin
Committed by
Titouan Soulard
1 month ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_api_style: API call set proper header for JSON Content type
parent
d75acb9a
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
bt5/erp5_api_style/DocumentTemplateItem/portal_components/document.erp5.jIOWebSection.py
...lateItem/portal_components/document.erp5.jIOWebSection.py
+1
-0
No files found.
bt5/erp5_api_style/DocumentTemplateItem/portal_components/document.erp5.jIOWebSection.py
View file @
b05f38f8
...
@@ -46,6 +46,7 @@ def convertTojIOAPICall(function):
...
@@ -46,6 +46,7 @@ def convertTojIOAPICall(function):
Log the call, and the result of the call
Log the call, and the result of the call
"""
"""
try
:
try
:
self
.
REQUEST
.
response
.
setHeader
(
"Content-Type"
,
"application/json"
)
retval
=
function
(
self
,
*
args
,
**
kwd
)
retval
=
function
(
self
,
*
args
,
**
kwd
)
except
Unauthorized
,
e
:
except
Unauthorized
,
e
:
LOG
(
'jIOWebSection'
,
INFO
,
'Converting Unauthorized to Unauthorized error mesage in JSON,'
,
LOG
(
'jIOWebSection'
,
INFO
,
'Converting Unauthorized to Unauthorized error mesage in JSON,'
,
...
...
This diff is collapsed.
Click to expand it.
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