Skip to content

Commit

Permalink
Update tooling/bundler/src/bundle/windows/util.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Oct 13, 2023
1 parent a01fea9 commit 8cc9123
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tooling/bundler/src/bundle/windows/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ pub const WIX_UPDATER_OUTPUT_FOLDER_NAME: &str = "msi-updater";
pub fn download(url: &str) -> crate::Result<Vec<u8>> {
info!(action = "Downloading"; "{}", url);

let agent = ureq::AgentBuilder::new().try_proxy_from_env(true)
.build();

let agent = ureq::AgentBuilder::new().try_proxy_from_env(true).build();
let response = agent.get(url).call().map_err(Box::new)?;
let mut bytes = Vec::new();
response.into_reader().read_to_end(&mut bytes)?;
Expand Down

0 comments on commit 8cc9123

Please sign in to comment.