Skip to content

Commit

Permalink
fix(node): mitigate denoland/deno#24678 (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyannyacha authored Sep 15, 2024
1 parent 50eb636 commit fbcd8c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/node/ops/http2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ pub async fn op_http2_send_response(
}
for (name, value) in headers {
response.headers_mut().append(
HeaderName::from_lowercase(&name).unwrap(),
HeaderName::from_bytes(&name).unwrap(),
HeaderValue::from_bytes(&value).unwrap(),
);
}
Expand Down Expand Up @@ -308,7 +308,7 @@ pub async fn op_http2_client_request(

for (name, value) in headers {
req.headers_mut().unwrap().append(
HeaderName::from_lowercase(&name).unwrap(),
HeaderName::from_bytes(&name).unwrap(),
HeaderValue::from_bytes(&value).unwrap(),
);
}
Expand Down

0 comments on commit fbcd8c5

Please sign in to comment.