Skip to content
Prev Previous commit
Next Next commit
typing guard
  • Loading branch information
bdraco committed Aug 23, 2024
commit d444d2aefac465546c8b94967c6b30f5f952bdd4
3 changes: 2 additions & 1 deletion aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
TYPE_CHECKING,
Any,
Callable,
Collection,
Dict,
Iterable,
List,
Expand Down Expand Up @@ -382,7 +383,7 @@ def update_headers(self, headers: Optional[LooseHeaders]) -> None:
self.headers.add(key, value)

def update_auto_headers(self, skip_auto_headers: Iterable[str]) -> None:
if skip_auto_headers:
if not isinstance(skip_auto_headers, Collection) or skip_auto_headers:
self.skip_auto_headers = CIMultiDict(
(hdr, None) for hdr in sorted(skip_auto_headers)
)
Expand Down