diff --git a/src/fetchers/gh_crate_meta.rs b/src/fetchers/gh_crate_meta.rs index c0f4035a..c8b4e60d 100644 --- a/src/fetchers/gh_crate_meta.rs +++ b/src/fetchers/gh_crate_meta.rs @@ -1,6 +1,6 @@ use std::path::Path; -use log::{debug, info}; +use log::{debug, info, warn}; use reqwest::Method; use serde::Serialize; use url::Url; @@ -28,6 +28,11 @@ impl super::Fetcher for GhCrateMeta { async fn check(&self) -> Result { let url = self.url()?; + + if url.scheme() != "https" { + warn!("URL is not HTTPS! This may become a hard error in the future, tell the upstream!"); + } + info!("Checking for package at: '{url}'"); remote_exists(url.as_str(), Method::HEAD).await }