Repository: 06chaynes/http-cache (language: rust)

Issue:
Support reqwest-middleware 0.4
Merci beaucoup


Discussion / hints:

Fix patch:
diff --git a/http-cache-darkbird/Cargo.toml b/http-cache-darkbird/Cargo.toml
index 9b736c0..4407de8 100644
--- a/http-cache-darkbird/Cargo.toml
+++ b/http-cache-darkbird/Cargo.toml
@@ -30,7 +30,7 @@ default-features = false
 [dev-dependencies]
 http = "1.1.0"
 reqwest = { version = "0.12.3", default-features = false }
-reqwest-middleware = "0.3.0"
+reqwest-middleware = "0.4.0"
 tokio = { version = "1.29.1", features = [ "macros", "rt", "rt-multi-thread" ] }
 wiremock = "0.6.0"
 url = { version = "2.4.0", features = ["serde"] }
diff --git a/http-cache-mokadeser/Cargo.toml b/http-cache-mokadeser/Cargo.toml
index 0394a05..03f037a 100644
--- a/http-cache-mokadeser/Cargo.toml
+++ b/http-cache-mokadeser/Cargo.toml
@@ -29,7 +29,7 @@ features = ["bincode"]
 [dev-dependencies]
 http = "1.1.0"
 reqwest = { version = "0.12.3", default-features = false }
-reqwest-middleware = "0.3.0"
+reqwest-middleware = "0.4.0"
 tokio = { version = "1.29.1", features = [ "macros", "rt", "rt-multi-thread" ] }
 url = { version = "2.4.0", features = ["serde"] }
 wiremock = "0.6.0"
diff --git a/http-cache-quickcache/Cargo.toml b/http-cache-quickcache/Cargo.toml
index e3edac5..e2e4a3a 100644
--- a/http-cache-quickcache/Cargo.toml
+++ b/http-cache-quickcache/Cargo.toml
@@ -32,7 +32,7 @@ features = ["bincode"]
 [dev-dependencies]
 http = "1.1.0"
 reqwest = { version = "0.12.3", default-features = false }
-reqwest-middleware = "0.3.0"
+reqwest-middleware = "0.4.0"
 tokio = { version = "1.29.1", features = [ "macros", "rt", "rt-multi-thread" ] }
 wiremock = "0.6.0"
 
diff --git a/http-cache-reqwest/Cargo.toml b/http-cache-reqwest/Cargo.toml
index 109e4a8..3d6afe5 100644
--- a/http-cache-reqwest/Cargo.toml
+++ b/http-cache-reqwest/Cargo.toml
@@ -20,7 +20,7 @@ async-trait = "0.1.72"
 http = "1.1.0"
 http-cache-semantics = "2.1.0"
 reqwest = { version = "0.12.3", default-features = false }
-reqwest-middleware = "0.3.0"
+reqwest-middleware = "0.4.0"
 serde = { version = "1.0.178", features = ["derive"] }
 url = { version = "2.4.0", features = ["serde"] }
 


Test patch: