Skip to content

Commit

Permalink
HTTP headers are never sent with the HTTP Client API (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuancelin authored Feb 13, 2024
1 parent 243e583 commit 2288813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/globals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ fn build_http_object(context: &JSContextRef) -> anyhow::Result<JSValueRef> {
if !headers.is_object() {
bail!("Expected headers to be an object");
}
if !headers.is_object() {
if headers.is_object() {
let mut header_values = headers.properties()?;
loop {
let key = header_values.next_key()?;
Expand Down

0 comments on commit 2288813

Please sign in to comment.