mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 09:13:23 +00:00
getheader() in stubs should be case-insensitive
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user