Commit 464483a5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Arnaud Fontaine

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

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