diff --git a/crates/binstalk-downloader/src/remote.rs b/crates/binstalk-downloader/src/remote.rs index 8a1f24f1..09564d9a 100644 --- a/crates/binstalk-downloader/src/remote.rs +++ b/crates/binstalk-downloader/src/remote.rs @@ -279,11 +279,9 @@ impl Client { } } - /// Check if remote exists using `Method::HEAD` or `Method::GET` as fallback. + /// Check if remote exists using `Method::GET`. pub async fn remote_gettable(&self, url: Url) -> Result { - self.head_or_fallback_to_get(url, false) - .await - .map(|response| response.status().is_success()) + Ok(self.get(url).send(false).await?.status().is_success()) } /// Attempt to get final redirected url using `Method::HEAD` or fallback