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
Labels
Merge Requests
139
Merge Requests
139
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
58026b9c
Commit
58026b9c
authored
Nov 10, 2022
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Zope4: response.cookies format is different in Zope >= 4.8."
This reverts commit
17346560
.
parent
b5f8a862
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
bt5/erp5_oauth2_authorisation/TestTemplateItem/portal_components/test.erp5.testOAuth2Server.py
...plateItem/portal_components/test.erp5.testOAuth2Server.py
+1
-2
No files found.
bt5/erp5_oauth2_authorisation/TestTemplateItem/portal_components/test.erp5.testOAuth2Server.py
View file @
58026b9c
...
...
@@ -464,13 +464,12 @@ class TestOAuth2(ERP5TypeTestCase):
))
if
response
.
body
:
response
.
headers
.
setdefault
(
'content-type'
,
'text/html; charset=utf-8'
)
# response.cookies can contain 'max_age': 0 in Zope < 4.8 but 'Max-Age': '0' in Zope >= 4.8.
return
(
response
.
status
,
response_header_dict
,
{
name
:
(
cookie_dict
if
cookie_dict
.
get
(
'max_age'
,
cookie_dict
.
get
(
'Max-Age'
))
not
in
(
0
,
'0'
)
else
cookie_dict
if
cookie_dict
.
get
(
'max_age'
,
True
)
else
None
)
for
name
,
cookie_dict
in
six
.
iteritems
(
cookie_dict
)
},
...
...
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