From 66c5142d0c3651b35dc741b4460a7ee1c3e7ae69 Mon Sep 17 00:00:00 2001
From: David Pedersen <david.pdrsn@gmail.com>
Date: Wed, 1 Dec 2021 21:14:25 +0100
Subject: [PATCH] Update tower-http (#581)

Updates to 0.2 which was just published.
---
 axum/Cargo.toml                         | 4 ++--
 deny.toml                               | 2 ++
 examples/cors/Cargo.toml                | 2 +-
 examples/key-value-store/Cargo.toml     | 2 +-
 examples/multipart-form/Cargo.toml      | 2 +-
 examples/sse/Cargo.toml                 | 2 +-
 examples/static-file-server/Cargo.toml  | 2 +-
 examples/testing/Cargo.toml             | 2 +-
 examples/todos/Cargo.toml               | 2 +-
 examples/tracing-aka-logging/Cargo.toml | 2 +-
 examples/websockets/Cargo.toml          | 2 +-
 11 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/axum/Cargo.toml b/axum/Cargo.toml
index 12c87f11..a4500e1c 100644
--- a/axum/Cargo.toml
+++ b/axum/Cargo.toml
@@ -38,7 +38,7 @@ sync_wrapper = "0.1.1"
 tokio = { version = "1", features = ["time"] }
 tokio-util = "0.6"
 tower = { version = "0.4.11", default-features = false, features = ["util", "buffer", "make"] }
-tower-http = { version = "0.1", features = ["map-response-body"] }
+tower-http = { version = "0.2.0", features = ["map-response-body"] }
 tower-layer = "0.3"
 tower-service = "0.3"
 
@@ -74,7 +74,7 @@ features = [
 ]
 
 [dev-dependencies.tower-http]
-version = "0.1"
+version = "0.2.0"
 features = ["full"]
 
 [package.metadata.docs.rs]
diff --git a/deny.toml b/deny.toml
index 575e337e..6559b51d 100644
--- a/deny.toml
+++ b/deny.toml
@@ -50,6 +50,8 @@ skip = [
     { name = "generic-array", version = "=0.12.4" },
     { name = "digest", version = "=0.8.1" },
     { name = "block-buffer", version = "=0.7.3" },
+    # old version pulled in by reqwest, only used in tests
+    { name = "webpki", version = "=0.21.4" },
 ]
 
 [sources]
diff --git a/examples/cors/Cargo.toml b/examples/cors/Cargo.toml
index 833a1fd2..004ba7e4 100644
--- a/examples/cors/Cargo.toml
+++ b/examples/cors/Cargo.toml
@@ -7,4 +7,4 @@ publish = false
 [dependencies]
 axum = { path = "../../axum" }
 tokio = { version = "1.0", features = ["full"] }
-tower-http = { version = "0.1", features = ["cors"] }
+tower-http = { version = "0.2.0", features = ["cors"] }
diff --git a/examples/key-value-store/Cargo.toml b/examples/key-value-store/Cargo.toml
index 1ff71131..20c92ab2 100644
--- a/examples/key-value-store/Cargo.toml
+++ b/examples/key-value-store/Cargo.toml
@@ -10,4 +10,4 @@ tokio = { version = "1.0", features = ["full"] }
 tracing = "0.1"
 tracing-subscriber = { version="0.3", features = ["env-filter"] }
 tower = { version = "0.4", features = ["util", "timeout", "load-shed", "limit"] }
-tower-http = { version = "0.1", features = ["add-extension", "auth", "compression-full", "trace" ] }
+tower-http = { version = "0.2.0", features = ["add-extension", "auth", "compression-full", "trace"] }
diff --git a/examples/multipart-form/Cargo.toml b/examples/multipart-form/Cargo.toml
index 682500fe..79e5f235 100644
--- a/examples/multipart-form/Cargo.toml
+++ b/examples/multipart-form/Cargo.toml
@@ -9,4 +9,4 @@ axum = { path = "../../axum", features = ["multipart"] }
 tokio = { version = "1.0", features = ["full"] }
 tracing = "0.1"
 tracing-subscriber = { version="0.3", features = ["env-filter"] }
-tower-http = { version = "0.1", features = ["trace" ] }
+tower-http = { version = "0.2.0", features = ["trace"] }
diff --git a/examples/sse/Cargo.toml b/examples/sse/Cargo.toml
index f083124e..c8c6b91f 100644
--- a/examples/sse/Cargo.toml
+++ b/examples/sse/Cargo.toml
@@ -9,7 +9,7 @@ axum = { path = "../../axum", features = ["headers"] }
 tokio = { version = "1.0", features = ["full"] }
 tracing = "0.1"
 tracing-subscriber = { version="0.3", features = ["env-filter"] }
-tower-http = { version = "0.1", features = ["fs", "trace"] }
+tower-http = { version = "0.2.0", features = ["fs", "trace"] }
 futures = "0.3"
 tokio-stream = "0.1"
 headers = "0.3"
diff --git a/examples/static-file-server/Cargo.toml b/examples/static-file-server/Cargo.toml
index 3449dadb..85e688e7 100644
--- a/examples/static-file-server/Cargo.toml
+++ b/examples/static-file-server/Cargo.toml
@@ -9,4 +9,4 @@ axum = { path = "../../axum" }
 tokio = { version = "1.0", features = ["full"] }
 tracing = "0.1"
 tracing-subscriber = { version="0.3", features = ["env-filter"] }
-tower-http = { version = "0.1", features = ["fs", "trace"] }
+tower-http = { version = "0.2.0", features = ["fs", "trace"] }
diff --git a/examples/testing/Cargo.toml b/examples/testing/Cargo.toml
index 1830ad68..30ff33c4 100644
--- a/examples/testing/Cargo.toml
+++ b/examples/testing/Cargo.toml
@@ -10,7 +10,7 @@ mime = "0.3"
 tokio = { version = "1.0", features = ["full"] }
 tracing = "0.1"
 tracing-subscriber = { version = "0.3", features = ["env-filter"] }
-tower-http = { version = "0.1", features = ["trace"] }
+tower-http = { version = "0.2.0", features = ["trace"] }
 serde_json = "1.0"
 hyper = { version = "0.14", features = ["full"] }
 
diff --git a/examples/todos/Cargo.toml b/examples/todos/Cargo.toml
index 08e1be4c..ceb71751 100644
--- a/examples/todos/Cargo.toml
+++ b/examples/todos/Cargo.toml
@@ -10,6 +10,6 @@ tokio = { version = "1.0", features = ["full"] }
 tracing = "0.1"
 tracing-subscriber = { version="0.3", features = ["env-filter"] }
 tower = { version = "0.4", features = ["util", "timeout"] }
-tower-http = { version = "0.1", features = ["add-extension", "trace"] }
+tower-http = { version = "0.2.0", features = ["add-extension", "trace"] }
 uuid = { version = "0.8", features = ["serde", "v4"] }
 serde = { version = "1.0", features = ["derive"] }
diff --git a/examples/tracing-aka-logging/Cargo.toml b/examples/tracing-aka-logging/Cargo.toml
index f8ecf9f1..d4470b03 100644
--- a/examples/tracing-aka-logging/Cargo.toml
+++ b/examples/tracing-aka-logging/Cargo.toml
@@ -9,4 +9,4 @@ axum = { path = "../../axum" }
 tokio = { version = "1.0", features = ["full"] }
 tracing = "0.1"
 tracing-subscriber = { version="0.3", features = ["env-filter"] }
-tower-http = { version = "0.1", features = ["trace"] }
+tower-http = { version = "0.2.0", features = ["trace"] }
diff --git a/examples/websockets/Cargo.toml b/examples/websockets/Cargo.toml
index 0e5059e7..91246da8 100644
--- a/examples/websockets/Cargo.toml
+++ b/examples/websockets/Cargo.toml
@@ -9,5 +9,5 @@ axum = { path = "../../axum", features = ["ws", "headers"] }
 tokio = { version = "1.0", features = ["full"] }
 tracing = "0.1"
 tracing-subscriber = { version="0.3", features = ["env-filter"] }
-tower-http = { version = "0.1", features = ["fs", "trace"] }
+tower-http = { version = "0.2.0", features = ["fs", "trace"] }
 headers = "0.3"