We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cb5aae commit 5f3fbf0Copy full SHA for 5f3fbf0
src/pip/_internal/index/collector.py
@@ -80,7 +80,7 @@ def _ensure_api_header(response: Response) -> None:
80
81
Raises `_NotAPIContent` if the content type is not a valid content-type.
82
"""
83
- content_type = response.headers.get("Content-Type", "")
+ content_type = response.headers.get("Content-Type", "Unknown")
84
85
content_type_l = content_type.lower()
86
if content_type_l.startswith(
0 commit comments