From 567e19c72726ace84e286bf726967dc9d0a5d1be Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 9 Oct 2024 08:02:27 -0300 Subject: [PATCH] actually set headers --- plugins/http/src/commands.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/http/src/commands.rs b/plugins/http/src/commands.rs index b403616e5..cda21bd53 100644 --- a/plugins/http/src/commands.rs +++ b/plugins/http/src/commands.rs @@ -268,6 +268,8 @@ pub async fn fetch( request = request.body(data); } + request = request.headers(headers); + let fut = async move { request.send().await.map_err(Into::into) }; let mut resources_table = webview.resources_table(); let rid = resources_table.add_request(Box::pin(fut));