diff --git a/crates/assistant/src/slash_command/fetch_command.rs b/crates/assistant/src/slash_command/fetch_command.rs index 547cacf559..c99bf438fb 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}"); }