1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 17:15:35 +00:00
This commit is contained in:
Kevin McCarthy
2014-05-10 11:51:35 -10:00
parent 6d656717a1
commit 8eb54c012f
6 changed files with 30 additions and 13 deletions

View File

@@ -50,9 +50,11 @@ def parse_headers(header_list):
header_string = b""
for key, values in header_list.items():
for v in values:
header_string += key.encode('utf-8') + b":" + v.encode('utf-8') + b"\r\n"
header_string += \
key.encode('utf-8') + b":" + v.encode('utf-8') + b"\r\n"
return compat.get_httpmessage(header_string)
def serialize_headers(response):
out = {}
for key, values in compat.get_headers(response):