Remove unecessary override of Headers.get (#1810)

This commit is contained in:
Adrian Garcia Badaracco 2022-08-14 05:39:02 -05:00 committed by GitHub
parent f6ea760a80
commit bd219edc45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -540,12 +540,6 @@ class Headers(typing.Mapping[str, str]):
for key, value in self._list
]
def get(self, key: str, default: typing.Any = None) -> typing.Any:
try:
return self[key]
except KeyError:
return default
def getlist(self, key: str) -> typing.List[str]:
get_header_key = key.lower().encode("latin-1")
return [