From fc3cb44b9161ce6bfae654f0a31d7224643b6cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?19=E5=B9=B4=E6=A2=A6=E9=86=92?= <3949379+getong@users.noreply.github.com> Date: Sat, 25 Nov 2023 16:47:57 +0800 Subject: [PATCH] Upgrade headers to 0.4.0 (#2351) --- Cargo.toml | 4 ---- axum-extra/Cargo.toml | 2 +- examples/sse/Cargo.toml | 2 +- examples/websockets/Cargo.toml | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f9e9c8b59e..a68aaab16a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,3 @@ default-members = ["axum", "axum-*"] # Example has been deleted, but README.md remains exclude = ["examples/async-graphql"] resolver = "2" - -[patch.crates-io] -# for http 1.0. PR to update is merged but not published -headers = { git = "https://github.com/hyperium/headers", rev = "4400aa90c47a7" } diff --git a/axum-extra/Cargo.toml b/axum-extra/Cargo.toml index bb71d3ab44..007b530a94 100644 --- a/axum-extra/Cargo.toml +++ b/axum-extra/Cargo.toml @@ -54,7 +54,7 @@ tower-service = "0.3" axum-macros = { path = "../axum-macros", version = "0.3.7", optional = true } cookie = { package = "cookie", version = "0.18.0", features = ["percent-encode"], optional = true } form_urlencoded = { version = "1.1.0", optional = true } -headers = { version = "0.3.8", optional = true } +headers = { version = "0.4.0", optional = true } multer = { version = "2.0.0", optional = true } percent-encoding = { version = "2.1", optional = true } prost = { version = "0.12", optional = true } diff --git a/examples/sse/Cargo.toml b/examples/sse/Cargo.toml index 66ec56ab4a..dec104bc36 100644 --- a/examples/sse/Cargo.toml +++ b/examples/sse/Cargo.toml @@ -8,7 +8,7 @@ publish = false axum = { path = "../../axum" } axum-extra = { path = "../../axum-extra", features = ["typed-header"] } futures = "0.3" -headers = "0.3" +headers = "0.4" tokio = { version = "1.0", features = ["full"] } tokio-stream = "0.1" tower-http = { version = "0.5.0", features = ["fs", "trace"] } diff --git a/examples/websockets/Cargo.toml b/examples/websockets/Cargo.toml index 22c8fd5680..1cedfc277b 100644 --- a/examples/websockets/Cargo.toml +++ b/examples/websockets/Cargo.toml @@ -9,7 +9,7 @@ axum = { path = "../../axum", features = ["ws"] } axum-extra = { path = "../../axum-extra", features = ["typed-header"] } futures = "0.3" futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] } -headers = "0.3" +headers = "0.4" tokio = { version = "1.0", features = ["full"] } tokio-tungstenite = "0.20" tower = { version = "0.4", features = ["util"] }