mirror of
https://github.com/denoland/deno.git
synced 2025-03-04 01:44:26 -05:00
chore(ext/http): fix github lint issue (#19479)
This commit is contained in:
parent
397b22eccf
commit
d2c638464d
1 changed files with 1 additions and 2 deletions
|
@ -16,7 +16,6 @@ use crate::slab::slab_insert;
|
||||||
use crate::slab::SlabId;
|
use crate::slab::SlabId;
|
||||||
use crate::websocket_upgrade::WebSocketUpgrade;
|
use crate::websocket_upgrade::WebSocketUpgrade;
|
||||||
use crate::LocalExecutor;
|
use crate::LocalExecutor;
|
||||||
use bytes::Bytes;
|
|
||||||
use cache_control::CacheControl;
|
use cache_control::CacheControl;
|
||||||
use deno_core::error::AnyError;
|
use deno_core::error::AnyError;
|
||||||
use deno_core::futures::TryFutureExt;
|
use deno_core::futures::TryFutureExt;
|
||||||
|
@ -416,8 +415,8 @@ fn op_http_set_response_headers(
|
||||||
let v8_name: ByteString = from_v8(scope, name).unwrap();
|
let v8_name: ByteString = from_v8(scope, name).unwrap();
|
||||||
let v8_value: ByteString = from_v8(scope, value).unwrap();
|
let v8_value: ByteString = from_v8(scope, value).unwrap();
|
||||||
let header_name = HeaderName::from_bytes(&v8_name).unwrap();
|
let header_name = HeaderName::from_bytes(&v8_name).unwrap();
|
||||||
// SAFETY: These are valid latin-1 strings
|
|
||||||
let header_value =
|
let header_value =
|
||||||
|
// SAFETY: These are valid latin-1 strings
|
||||||
unsafe { HeaderValue::from_maybe_shared_unchecked(v8_value) };
|
unsafe { HeaderValue::from_maybe_shared_unchecked(v8_value) };
|
||||||
resp_headers.append(header_name, header_value);
|
resp_headers.append(header_name, header_value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue