From 0a15ef907ba568a5f5738ce0889c835915de1b97 Mon Sep 17 00:00:00 2001 From: Patrick Fernie Date: Wed, 12 May 2021 13:59:33 -0400 Subject: [PATCH] Release v0.1.5 * Update to `cookie_store` `v0.14.1` --- Cargo.toml | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f2358dc..b9e5052 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reqwest_cookie_store" -version = "0.1.4" +version = "0.1.5" authors = ["Patrick Fernie "] edition = "2018" description = "A simple crate providing an implementation of the `reqwest::cookie::CookieStore` trait for `cookie_store::CookieStore`" diff --git a/src/lib.rs b/src/lib.rs index c028223..696a5f4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -101,8 +101,8 @@ fn set_cookies( fn cookies(cookie_store: &CookieStore, url: &url::Url) -> Option { let s = cookie_store - .get_request_cookies(url) - .map(|c| format!("{}={}", c.name(), c.value())) + .get_request_values(url) + .map(|(name, value)| format!("{}={}", name, value)) .collect::>() .join("; ");