Commit b137090d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Arnaud Fontaine

erp5_oauth2_authorisation: use HTTPResponse.listHeaders() instead of accessing properties directly.

parent 90751be8
......@@ -409,13 +409,9 @@ class TestOAuth2(ERP5TypeTestCase):
exc = None
finally:
setSecurityManager(current_security_manager)
cookie_dict = response.cookies.copy()
cookie_dict = {}
response_header_dict = {}
for item_list in (
six.iteritems(response.headers),
response.accumulated_headers,
):
for key, value in item_list:
for key, value in response.listHeaders():
key = key.lower()
if key == 'set-cookie':
# XXX: minimal Set-Cookie parser
......
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