Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions httpx/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def get_list(self, key: str, split_commas: bool = False) -> list[str]:
values = [
item_value.decode(self.encoding)
for _, item_key, item_value in self._list
if item_key.lower() == get_header_key
if item_key == get_header_key
]

if not split_commas:
Expand Down Expand Up @@ -334,7 +334,7 @@ def __delitem__(self, key: str) -> None:
pop_indexes = [
idx
for idx, (_, item_key, _) in enumerate(self._list)
if item_key.lower() == del_key
if item_key == del_key
]

if not pop_indexes:
Expand Down