From 28d57e0dec78881645f9e36fd41c5acb620c9490 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 18 Feb 2026 11:47:40 +0800 Subject: [PATCH] build(deps): update wreq dependency version to 6.0.0-rc.28 --- Cargo.toml | 4 ++-- src/cookie.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c056e17..1944a06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ name = "wreq_ruby" magnus = { version = "0.8", features = ["bytes"] } rb-sys = { version = "0.9.110", default-features = false } tokio = { version = "1.49.0", features = ["full"] } -wreq = { version = "6.0.0-rc.26", features = [ +wreq = { version = "6.0.0-rc.28", features = [ "query", "form", "json", @@ -30,7 +30,7 @@ wreq = { version = "6.0.0-rc.26", features = [ "deflate", "zstd", ] } -wreq-util = "3.0.0-rc.9" +wreq-util = "3.0.0-rc.10" serde = { version = "1.0", features = ["derive"] } serde_magnus = "0.10.0" indexmap = { version = "2.12.1", features = ["serde"] } diff --git a/src/cookie.rs b/src/cookie.rs index 88e39cd..060b4c1 100644 --- a/src/cookie.rs +++ b/src/cookie.rs @@ -222,12 +222,12 @@ impl Jar { /// Add a cookie to this jar. pub fn add_cookie(&self, cookie: &Cookie, url: String) { - gvl::nogvl(|| self.0.add_cookie(cookie.0.clone(), &url)) + gvl::nogvl(|| self.0.add(cookie.0.clone(), &url)) } /// Add a cookie str to this jar. pub fn add_cookie_str(&self, cookie: String, url: String) { - gvl::nogvl(|| self.0.add_cookie_str(&cookie, &url)) + gvl::nogvl(|| self.0.add(cookie.as_ref(), &url)) } /// Remove a cookie from this jar by name and URL.