mirror of https://github.com/pypa/pip
Warn if package index gets unexpected Content-Type
This commit is contained in:
parent
80c640b5a8
commit
1bc7f535ca
|
@ -0,0 +1 @@
|
|||
Warn if index pages have unexpected content-type
|
|
@ -455,8 +455,9 @@ def _get_html_page(link, session=None):
|
|||
'be checked by HEAD.', link,
|
||||
)
|
||||
except _NotHTML as exc:
|
||||
logger.debug(
|
||||
'Skipping page %s because the %s request got Content-Type: %s',
|
||||
logger.warning(
|
||||
'Skipping page %s because the %s request got Content-Type: %s.'
|
||||
'The supported Content-Type is text/html',
|
||||
link, exc.request_desc, exc.content_type,
|
||||
)
|
||||
except HTTPError as exc:
|
||||
|
|
Loading…
Reference in New Issue