Skip to content

Commit

Permalink
Use proxy server also for FTP .treeinfo download
Browse files Browse the repository at this point in the history
We missed ftp prefix in the list of schemes.

Resolves: RHEL-54009
(cherry picked from commit a203b75)
  • Loading branch information
jkonecny12 committed Aug 13, 2024
1 parent 407af17 commit fc429ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyanaconda/modules/payloads/payload/dnf/tree_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ def _get_downloader(self, session, data):
proxy = ProxyString(proxy_url)
proxies = {
"http": proxy.url,
"https": proxy.url
"https": proxy.url,
"ftp": proxy.url
}
except ProxyStringError as e:
log.debug("Failed to parse the proxy '%s': %s", proxy_url, e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ def test_load_data_proxy(self, session_getter):
headers={"user-agent": "anaconda (anaconda)/bluesky"},
proxies={
'http': 'http://user:pass@example.com:3128',
'https': 'http://user:pass@example.com:3128'
'https': 'http://user:pass@example.com:3128',
'ftp': 'http://user:pass@example.com:3128'
},
verify=True,
cert=None,
Expand Down

0 comments on commit fc429ed

Please sign in to comment.