From 90599c2e7c47debac84ca9fdf13a36520839316c Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Fri, 12 Dec 2025 16:39:44 -0300 Subject: [PATCH] Update http_client.rs --- src/http_client.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http_client.rs b/src/http_client.rs index 6ae593d..67be31b 100644 --- a/src/http_client.rs +++ b/src/http_client.rs @@ -19,12 +19,13 @@ impl BotServerClient { /// Create new botserver HTTP client pub fn new(base_url: Option) -> Self { let url = base_url.unwrap_or_else(|| { - std::env::var("BOTSERVER_URL").unwrap_or_else(|_| "http://localhost:8080".to_string()) + std::env::var("BOTSERVER_URL").unwrap_or_else(|_| "https://localhost:8088".to_string()) }); let client = reqwest::Client::builder() .timeout(Duration::from_secs(30)) .user_agent(format!("BotLib/{}", env!("CARGO_PKG_VERSION"))) + .danger_accept_invalid_certs(true) // Accept self-signed certs for local dev .build() .expect("Failed to create HTTP client");