Skip to content

Commit

Permalink
not falling back to http if https fails, dependencies must be downloa…
Browse files Browse the repository at this point in the history
…ded via https
  • Loading branch information
amitu committed Oct 20, 2023
1 parent 77efd5c commit 08ebdce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fastn-core/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,8 @@ where
{
if url[1..].contains("://") || url.starts_with("//") {
f(url).await
} else if let Ok(response) = f(format!("https://{}", url)).await {
Ok(response)
} else {
f(format!("http://{}", url)).await
f(format!("https://{}", url)).await
}
}

Expand Down

0 comments on commit 08ebdce

Please sign in to comment.