diff --git a/tests/test_binding.py b/tests/test_binding.py index 01d7e138..aa3a1391 100755 --- a/tests/test_binding.py +++ b/tests/test_binding.py @@ -508,7 +508,7 @@ def urllib2_insert_cookie_handler(url, message, **kwargs): # Mimic the insertion of 3rd party cookies into the response. # An example is "sticky session"/"insert cookie" persistence # of a load balancer for a SHC. - header_list = response.getheaders() + header_list = [(k, v) for k, v in response.info().items()] header_list.append(("Set-Cookie", "BIGipServer_splunk-shc-8089=1234567890.12345.0000; path=/; Httponly; Secure")) header_list.append(("Set-Cookie", "home_made=yummy"))