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 99bb3c8 commit cec1b94Copy full SHA for cec1b94
seed_intersphinx_mapping/core.py
@@ -93,7 +93,7 @@ def get_sphinx_doc_url(pypi_name: str) -> str:
93
if docs_dict:
94
95
# Follow redirects to get actual URL
96
- r = requests.get(list(docs_dict.values())[0])
+ r = requests.head(list(docs_dict.values())[0], allow_redirects=True)
97
if r.status_code != 200: # pragma: no cover
98
raise ValueError("Documentation URl not found.")
99
@@ -104,7 +104,7 @@ def get_sphinx_doc_url(pypi_name: str) -> str:
104
else: # pragma: no cover
105
objects_inv_url = f"{docs_url}/objects.inv"
106
107
- r = requests.get(objects_inv_url)
+ r = requests.head(objects_inv_url)
108
if r.status_code != 200:
109
raise ValueError("objects.inv not found at url.")
110
0 commit comments