From c2414db1f68d27db8ca6f192f0ff877f1394164c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 27 Dec 2023 17:59:57 +0100 Subject: refactor: simplify hyper, http, h2 deps (#21715) Main change is that: - "hyper" has been renamed to "hyper_v014" to signal that it's legacy - "hyper1" has been renamed to "hyper" and should be the default --- ext/http/websocket_upgrade.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/http/websocket_upgrade.rs') diff --git a/ext/http/websocket_upgrade.rs b/ext/http/websocket_upgrade.rs index d1eabfdf5..91bb81c74 100644 --- a/ext/http/websocket_upgrade.rs +++ b/ext/http/websocket_upgrade.rs @@ -6,9 +6,9 @@ use bytes::Bytes; use bytes::BytesMut; use deno_core::error::AnyError; use httparse::Status; -use hyper1::header::HeaderName; -use hyper1::header::HeaderValue; -use hyper1::Response; +use hyper::header::HeaderName; +use hyper::header::HeaderValue; +use hyper::Response; use memmem::Searcher; use memmem::TwoWaySearcher; use once_cell::sync::OnceCell; @@ -152,7 +152,7 @@ impl WebSocketUpgrade { #[cfg(test)] mod tests { use super::*; - use hyper::Body; + use hyper_v014::Body; type ExpectedResponseAndHead = Option<(Response, &'static [u8])>; -- cgit v1.2.3