From a77eeecc1ea6a9234a1871851ff90b9bdc73b9a0 Mon Sep 17 00:00:00 2001 From: m00nwtchr Date: Thu, 29 Feb 2024 16:37:05 +0100 Subject: [PATCH] cookie store --- Cargo.lock | 2 +- plugins/http/src/commands.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 13b1616970..eb79c0ec0b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6723,7 +6723,7 @@ dependencies = [ [[package]] name = "tauri-plugin-single-instance" -version = "2.0.0-beta.1" +version = "2.0.0-beta.2" dependencies = [ "log", "serde", diff --git a/plugins/http/src/commands.rs b/plugins/http/src/commands.rs index d4b2469bf3..ad616f583c 100644 --- a/plugins/http/src/commands.rs +++ b/plugins/http/src/commands.rs @@ -190,6 +190,11 @@ pub async fn fetch( builder = attach_proxy(proxy_config, builder)?; } + #[cfg(feature = "cookies")] + { + builder = builder.cookie_store(true); + } + let mut request = builder.build()?.request(method.clone(), url); for (name, value) in &headers {