1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 17:15:35 +00:00

getheader() in stubs should be case-insensitive

This commit is contained in:
Kevin McCarthy
2014-08-01 16:25:59 -10:00
parent a23c5d8508
commit 9a1147196a
3 changed files with 32 additions and 2 deletions

View File

@@ -111,8 +111,8 @@ class VCRHTTPResponse(HTTPResponse):
return compat.get_header_items(message)
def getheader(self, header, default=None):
headers = dict(((k, v) for k, v in self.getheaders()))
return headers.get(header, default)
headers = dict(((k.lower(), v) for k, v in self.getheaders()))
return headers.get(header.lower(), default)
class VCRConnection: