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));