Skip to content

Commit 7414c64

Browse files
TG1999JonoYang
andauthored
Update src/python_inspector/utils_pypi.py
Co-authored-by: Jono Yang <JonoYang@users.noreply.github.com>
1 parent 77e687a commit 7414c64

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/python_inspector/utils_pypi.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,16 @@ def get_remote_file_content(
16461646
if verbose:
16471647
echo_func(f"DOWNLOADING: {url}")
16481648
if credentials:
1649-
stream = requests.get(
1649+
auth = (credentials.get("login"), credentials.get("password"))
1650+
else:
1651+
auth = None
1652+
stream = requests.get(
1653+
url,
1654+
allow_redirects=True,
1655+
stream=True,
1656+
headers=headers,
1657+
auth=auth,
1658+
)
16501659
url,
16511660
allow_redirects=True,
16521661
stream=True,

0 commit comments

Comments
 (0)