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(), ); }