Skip to content

Commit 5f3fbf0

Browse files
committed
Always use Unknown when unknown
1 parent 7cb5aae commit 5f3fbf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/index/collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _ensure_api_header(response: Response) -> None:
8080
8181
Raises `_NotAPIContent` if the content type is not a valid content-type.
8282
"""
83-
content_type = response.headers.get("Content-Type", "")
83+
content_type = response.headers.get("Content-Type", "Unknown")
8484

8585
content_type_l = content_type.lower()
8686
if content_type_l.startswith(

0 commit comments

Comments
 (0)