summaryrefslogtreecommitdiff
path: root/ext/http/http_next.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-10-14 23:25:47 -0400
committerGitHub <noreply@github.com>2024-10-14 23:25:47 -0400
commit7f3747f2ef7cc9e1d45aa33360afdfe62cd20c56 (patch)
treea5d6237b2c3fc1ec5ee664a8bbde4d00f7890ca8 /ext/http/http_next.rs
parent4c9eee3ebe383f0aa8f082dd6831f609cd5d5abb (diff)
perf(http): avoid clone getting request method and url (#26250)
Diffstat (limited to 'ext/http/http_next.rs')
-rw-r--r--ext/http/http_next.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/http/http_next.rs b/ext/http/http_next.rs
index efe1b88c9..a58c4be5c 100644
--- a/ext/http/http_next.rs
+++ b/ext/http/http_next.rs
@@ -296,7 +296,7 @@ where
let authority: v8::Local<v8::Value> = match request_properties.authority {
Some(authority) => v8::String::new_from_utf8(
scope,
- authority.as_ref(),
+ authority.as_bytes(),
v8::NewStringType::Normal,
)
.unwrap()