mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 07:06:36 +00:00
Use HEAD to check remote exists
This commit is contained in:
parent
50ac8d0847
commit
c6e5a96fa3
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ impl super::Fetcher for GhCrateMeta {
|
|||
|
||||
async fn check(&self) -> Result<bool, anyhow::Error> {
|
||||
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> {
|
||||
|
|
|
@ -21,7 +21,7 @@ impl super::Fetcher for QuickInstall {
|
|||
|
||||
async fn check(&self) -> Result<bool, anyhow::Error> {
|
||||
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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue