Skip to content

Commit

Permalink
fix(https): remove unused parsed_address and basic_auth from _get fun…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
Sma1lboy committed Jan 30, 2025
1 parent 8897506 commit 854e727
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/aim-downloader/src/https.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ impl HTTPSHandler {
}

async fn _get(input: &str, output: &str, bar: &mut WrappedBar) -> Result<(), DownloadError> {
let parsed_address = ParsedAddress::parse_address(input, bar.silent);
let (mut out, mut downloaded) = io::get_output(output, bar.silent);

let res = Client::new()
Expand All @@ -132,7 +131,6 @@ impl HTTPSHandler {
reqwest::header::USER_AGENT,
reqwest::header::HeaderValue::from_static(CLIENT_ID),
)
.basic_auth(parsed_address.username, Some(parsed_address.password))
.send()
.await
.and_then(|r| r.error_for_status())
Expand Down

0 comments on commit 854e727

Please sign in to comment.