Update warning message to specify HTTP request

This commit is contained in:
Devesh Kumar Singh 2020-06-29 22:20:11 +05:30
parent 46790a4f3c
commit 6c899ed0c8
2 changed files with 2 additions and 2 deletions

View File

@ -453,7 +453,7 @@ def _get_html_page(link, session=None):
except _NotHTTP:
logger.warning(
'Skipping page %s because it looks like an archive, and cannot '
'be checked by HEAD.', link,
'be checked by a HTTP HEAD request.', link,
)
except _NotHTML as exc:
logger.warning(

View File

@ -94,7 +94,7 @@ def test_get_html_page_invalid_content_type_archive(caplog, url):
assert ('pip._internal.index.collector',
logging.WARNING,
'Skipping page {} because it looks like an archive, and cannot '
'be checked by HEAD.'.format(
'be checked by a HTTP HEAD request.'.format(
url)) \
in caplog.record_tuples