Make following redirects explicit in HttpClient::get

This commit is contained in:
Antonio Scandurra 2022-04-27 13:14:45 +02:00
parent 78afbb3599
commit 0e1e5b7d55
7 changed files with 21 additions and 15 deletions

View file

@ -42,7 +42,7 @@ impl super::LspAdapter for CLspAdapter {
if fs::metadata(&binary_path).await.is_err() {
let mut response = http
.get(&version.url, Default::default())
.get(&version.url, Default::default(), true)
.await
.context("error downloading release")?;
let mut file = File::create(&zip_path).await?;