Skip to content

Commit

Permalink
Use proxy auth from the Remote config.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkliban committed Jul 13, 2021
1 parent 0c3b69d commit 0c9541d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/9024.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use proxy auth from Remote config to download content from a remote repository.
4 changes: 3 additions & 1 deletion pulpcore/download/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ async def _run(self, extra_data=None):
"""
if self.download_throttler:
await self.download_throttler.acquire()
async with self.session.get(self.url, proxy=self.proxy, auth=self.auth) as response:
async with self.session.get(
self.url, proxy=self.proxy, proxy_auth=self.proxy_auth, auth=self.auth
) as response:
self.raise_for_status(response)
to_return = await self._handle_response(response)
await response.release()
Expand Down

0 comments on commit 0c9541d

Please sign in to comment.