Skip to content

Commit

Permalink
actually set headers
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Oct 9, 2024
1 parent 860ddb5 commit 567e19c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/http/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ pub async fn fetch<R: Runtime>(
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));
Expand Down

0 comments on commit 567e19c

Please sign in to comment.