add missing 'url' argument to 'get_ureq_agent' calls
@@ -86,7 +86,7 @@ pub fn get_ureq_agent(url: &str) -> Result<ureq::Agent> {
}
pub fn download_extract_sans_parent(url: &str, target_path: &Path, levels_to_skip: usize) -> Result<()> {
- let agent = get_ureq_agent()
+ let agent = get_ureq_agent(url)
.with_context(|| format!("Failed to construct download agent."))?;
let response = agent.get(url)
@@ -115,7 +115,7 @@ pub fn download_extract_sans_parent(url: &str, target_path: &Path, levels_to_ski
}
pub fn download_juliaup_version(url: &str) -> Result<Version> {
- let agent = get_ureq_agent()
+ let agent = get_ureq_agent(url)
.with_context(|| format!("Failed to construct download agent."))?;
let response = agent.get(url)
