diff --git a/src/fetchers/gh_crate_meta.rs b/src/fetchers/gh_crate_meta.rs index 8a5028a9..1b3164d4 100644 --- a/src/fetchers/gh_crate_meta.rs +++ b/src/fetchers/gh_crate_meta.rs @@ -33,7 +33,7 @@ impl super::Fetcher for GhCrateMeta { async fn check(&self) -> Result { info!("Checking for package at: '{}'", self.url); - remote_exists(&self.url, Method::OPTIONS).await + remote_exists(&self.url, Method::HEAD).await } async fn fetch(&self, dst: &Path) -> Result<(), anyhow::Error> { diff --git a/src/fetchers/quickinstall.rs b/src/fetchers/quickinstall.rs index 6ab9a812..c4765af9 100644 --- a/src/fetchers/quickinstall.rs +++ b/src/fetchers/quickinstall.rs @@ -21,7 +21,7 @@ impl super::Fetcher for QuickInstall { async fn check(&self) -> Result { info!("Checking for package at: '{}'", self.url); - remote_exists(&self.url, Method::OPTIONS).await + remote_exists(&self.url, Method::HEAD).await } async fn fetch(&self, dst: &Path) -> Result<(), anyhow::Error> {