diff options
Diffstat (limited to 'ext/http/http_next.rs')
-rw-r--r-- | ext/http/http_next.rs | 2 |
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() |