1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Updated comments

This commit is contained in:
Nick DiRienzo
2016-06-20 23:43:47 -07:00
parent 2f4c803678
commit c3298c25a3
2 changed files with 4 additions and 4 deletions

View File

@@ -146,8 +146,8 @@ def decode_response(response):
else: # encoding == 'deflate'
return zlib.decompress(body)
# Deepcopy here in case headers contain lists and other objects that could
# be mutated by a shallow copy.
# Deepcopy here in case `headers` contain objects that could
# be mutated by a shallow copy and corrupt the real response.
response = copy.deepcopy(response)
headers = CaseInsensitiveDict(response['headers'])
if is_compressed(headers):