bug: change reqwest certificate store to platform's native (#1923)
This commit is contained in:
@@ -30,7 +30,7 @@ serde = { version = "1.0", features = ["derive"] } # For serialization
|
||||
serde_yaml = "0.9"
|
||||
etcetera = "0.8.0"
|
||||
reqwest = { version = "0.12.9", features = [
|
||||
"rustls-tls",
|
||||
"rustls-tls-native-roots",
|
||||
"json",
|
||||
"cookies",
|
||||
"gzip",
|
||||
|
||||
@@ -183,7 +183,6 @@ mod tests {
|
||||
use std::env;
|
||||
use tempfile::TempDir;
|
||||
use test_case::test_case;
|
||||
use tokio::runtime::Runtime;
|
||||
|
||||
fn setup_temp_home() -> TempDir {
|
||||
let temp_dir = TempDir::new().unwrap();
|
||||
@@ -209,12 +208,11 @@ mod tests {
|
||||
assert!(path_components.iter().any(|c| c.as_os_str() == "cli"));
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
#[test_case(Some("test_session"), true ; "with session name and error capture")]
|
||||
#[test_case(Some("test_session"), false ; "with session name without error capture")]
|
||||
#[test_case(None, false ; "without session name")]
|
||||
fn test_log_file_name(session_name: Option<&str>, _with_error_capture: bool) {
|
||||
let _rt = Runtime::new().unwrap();
|
||||
|
||||
async fn test_log_file_name(session_name: Option<&str>, _with_error_capture: bool) {
|
||||
// Create a unique test directory for each test
|
||||
let test_name = session_name.unwrap_or("no_session");
|
||||
let random_suffix = std::time::SystemTime::now()
|
||||
|
||||
@@ -28,7 +28,7 @@ indoc = "2.0.5"
|
||||
xcap = "0.0.14"
|
||||
reqwest = { version = "0.11", features = [
|
||||
"json",
|
||||
"rustls-tls",
|
||||
"rustls-tls-native-roots",
|
||||
], default-features = false }
|
||||
async-trait = "0.1"
|
||||
chrono = { version = "0.4.38", features = ["serde"] }
|
||||
|
||||
@@ -9,7 +9,7 @@ description.workspace = true
|
||||
|
||||
[build-dependencies]
|
||||
tokio = { version = "1.36", features = ["full"] }
|
||||
reqwest = { version = "0.12.9", features = ["json", "rustls-tls"], default-features = false }
|
||||
reqwest = { version = "0.12.9", features = ["json", "rustls-tls-native-roots"], default-features = false }
|
||||
|
||||
[dependencies]
|
||||
mcp-client = { path = "../mcp-client" }
|
||||
@@ -18,7 +18,7 @@ anyhow = "1.0"
|
||||
thiserror = "1.0"
|
||||
futures = "0.3"
|
||||
reqwest = { version = "0.12.9", features = [
|
||||
"rustls-tls",
|
||||
"rustls-tls-native-roots",
|
||||
"json",
|
||||
"cookies",
|
||||
"gzip",
|
||||
|
||||
@@ -6,7 +6,7 @@ edition = "2021"
|
||||
[dependencies]
|
||||
mcp-core = { path = "../mcp-core" }
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
reqwest = { version = "0.11", default-features = false, features = ["json", "stream", "rustls-tls"] }
|
||||
reqwest = { version = "0.11", default-features = false, features = ["json", "stream", "rustls-tls-native-roots"] }
|
||||
eventsource-client = "0.12.0"
|
||||
futures = "0.3"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
|
||||
Reference in New Issue
Block a user