diff --git a/Cargo.toml b/Cargo.toml index 20a52a09c..b0e5e02a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ futures-util = { version = "0.3", default-features = false } tokio-util_wasi = { version = "0.7.4", features = ["codec", "io"] } tokio_wasi = {version = "1", features = ["io-util"] } bytes = "1" -http = "0.2" +http = "1" tracing = { version = "0.1.35", default-features = false, features = ["std"] } fnv = "1.0.5" slab = "0.4.2" diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index aafb60ae7..922eca238 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -16,7 +16,7 @@ tokio = { version = "1", features = [ "full" ] } h2 = { path = "../", features = [ "unstable" ] } h2-support = { path = "../tests/h2-support" } futures = { version = "0.3", default-features = false, features = ["std"] } -http = "0.2" +http = "1" # Prevent this from interfering with workspaces [workspace] diff --git a/tests/h2-fuzz/Cargo.toml b/tests/h2-fuzz/Cargo.toml index dadb62c92..b0f9599e9 100644 --- a/tests/h2-fuzz/Cargo.toml +++ b/tests/h2-fuzz/Cargo.toml @@ -11,5 +11,5 @@ h2 = { path = "../.." } env_logger = { version = "0.9", default-features = false } futures = { version = "0.3", default-features = false, features = ["std"] } honggfuzz = "0.5" -http = "0.2" +http = "1" tokio = { version = "1", features = [ "full" ] } diff --git a/tests/h2-support/Cargo.toml b/tests/h2-support/Cargo.toml index 522d904cb..970648d5a 100644 --- a/tests/h2-support/Cargo.toml +++ b/tests/h2-support/Cargo.toml @@ -14,6 +14,6 @@ tracing = "0.1" tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt"] } tracing-tree = "0.2" futures = { version = "0.3", default-features = false } -http = "0.2" +http = "1" tokio = { version = "1", features = ["time"] } tokio-test = "0.4" diff --git a/tests/h2-tests/tests/server.rs b/tests/h2-tests/tests/server.rs index 6075c7dcf..dd97e94d2 100644 --- a/tests/h2-tests/tests/server.rs +++ b/tests/h2-tests/tests/server.rs @@ -1126,6 +1126,7 @@ async fn request_without_authority() { #[tokio::test] async fn serve_when_request_in_response_extensions() { + use std::sync::Arc; h2_support::trace_init!(); let (io, mut client) = mock::new(); @@ -1149,7 +1150,7 @@ async fn serve_when_request_in_response_extensions() { let (req, mut stream) = srv.next().await.unwrap().unwrap(); let mut rsp = http::Response::new(()); - rsp.extensions_mut().insert(req); + rsp.extensions_mut().insert(Arc::new(req)); stream.send_response(rsp, true).unwrap(); assert!(srv.next().await.is_none());