Skip to content

Commit

Permalink
update http to 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Nov 15, 2023
1 parent 8867e95 commit 6024592
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ futures-util = { version = "0.3", default-features = false }
tokio-util = { version = "0.7.1", features = ["codec", "io"] }
tokio = { 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"
Expand Down
2 changes: 1 addition & 1 deletion fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion tests/h2-fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ] }
2 changes: 1 addition & 1 deletion tests/h2-support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
3 changes: 2 additions & 1 deletion tests/h2-tests/tests/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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());
Expand Down

0 comments on commit 6024592

Please sign in to comment.