From fbcd8c5c0ce850cc20f9239218c3f969dc0ed4e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=83=A5=EB=83=90=EC=B1=A0?= Date: Mon, 16 Sep 2024 04:28:37 +0900 Subject: [PATCH] fix(node): mitigate denoland/deno#24678 (#407) --- crates/node/ops/http2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/node/ops/http2.rs b/crates/node/ops/http2.rs index c0d49e39..f6d21ad0 100644 --- a/crates/node/ops/http2.rs +++ b/crates/node/ops/http2.rs @@ -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(), ); } @@ -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(), ); }