Skip to content

Commit 2fa7723

Browse files
committed
fixed get headers logic
1 parent 1cd8076 commit 2fa7723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_binding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def urllib2_insert_cookie_handler(url, message, **kwargs):
508508
# Mimic the insertion of 3rd party cookies into the response.
509509
# An example is "sticky session"/"insert cookie" persistence
510510
# of a load balancer for a SHC.
511-
header_list = response.getheaders()
511+
header_list = [(k, v) for k, v in response.info().items()]
512512
header_list.append(("Set-Cookie", "BIGipServer_splunk-shc-8089=1234567890.12345.0000; path=/; Httponly; Secure"))
513513
header_list.append(("Set-Cookie", "home_made=yummy"))
514514

0 commit comments

Comments
 (0)