Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update http to 1.0 #726

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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