Skip to content

Commit

Permalink
chore(ext/http): fix github lint issue (#19479)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac authored Jun 13, 2023
1 parent 397b22e commit d2c6384
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/http/http_next.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use crate::slab::slab_insert;
use crate::slab::SlabId;
use crate::websocket_upgrade::WebSocketUpgrade;
use crate::LocalExecutor;
use bytes::Bytes;
use cache_control::CacheControl;
use deno_core::error::AnyError;
use deno_core::futures::TryFutureExt;
Expand Down Expand Up @@ -416,8 +415,8 @@ fn op_http_set_response_headers(
let v8_name: ByteString = from_v8(scope, name).unwrap();
let v8_value: ByteString = from_v8(scope, value).unwrap();
let header_name = HeaderName::from_bytes(&v8_name).unwrap();
// SAFETY: These are valid latin-1 strings
let header_value =
// SAFETY: These are valid latin-1 strings
unsafe { HeaderValue::from_maybe_shared_unchecked(v8_value) };
resp_headers.append(header_name, header_value);
}
Expand Down

0 comments on commit d2c6384

Please sign in to comment.