diff --git a/crates/assistant/src/slash_command/fetch_command.rs b/crates/assistant/src/slash_command/fetch_command.rs index 547cacf55974dfefa9611d4199e7de8f52c1758a..c99bf438fbc20626a344dffc4b311aed212a742d 100644 --- a/crates/assistant/src/slash_command/fetch_command.rs +++ b/crates/assistant/src/slash_command/fetch_command.rs @@ -27,7 +27,7 @@ pub(crate) struct FetchSlashCommand; impl FetchSlashCommand { async fn build_message(http_client: Arc, url: &str) -> Result { let mut url = url.to_owned(); - if !url.starts_with("https://") { + if !url.starts_with("https://") && !url.starts_with("http://") { url = format!("https://{url}"); }