diff --git a/actix-http-test/Cargo.toml b/actix-http-test/Cargo.toml
index 7adce434b..6f7563ffa 100644
--- a/actix-http-test/Cargo.toml
+++ b/actix-http-test/Cargo.toml
@@ -40,7 +40,7 @@ awc = { version = "3", default-features = false }
base64 = "0.13"
bytes = "1"
futures-core = { version = "0.3.7", default-features = false }
-http = "0.2.8"
+http = "0.2.5"
log = "0.4"
socket2 = "0.4"
serde = "1.0"
diff --git a/actix-http/Cargo.toml b/actix-http/Cargo.toml
index 2948c4047..03767ca4e 100644
--- a/actix-http/Cargo.toml
+++ b/actix-http/Cargo.toml
@@ -68,7 +68,7 @@ bytestring = "1"
derive_more = "0.99.5"
encoding_rs = "0.8"
futures-core = { version = "0.3.7", default-features = false, features = ["alloc"] }
-http = "0.2.8"
+http = "0.2.5"
httparse = "1.5.1"
httpdate = "1.0.1"
itoa = "1"
diff --git a/actix-router/Cargo.toml b/actix-router/Cargo.toml
index f43862494..141b2d39e 100644
--- a/actix-router/Cargo.toml
+++ b/actix-router/Cargo.toml
@@ -21,14 +21,14 @@ default = ["http"]
[dependencies]
bytestring = ">=0.1.5, <2"
-http = { version = "0.2.8", optional = true }
+http = { version = "0.2.5", optional = true }
regex = "1.5"
serde = "1"
tracing = { version = "0.1.30", default-features = false, features = ["log"] }
[dev-dependencies]
criterion = { version = "0.3", features = ["html_reports"] }
-http = "0.2.8"
+http = "0.2.5"
serde = { version = "1", features = ["derive"] }
percent-encoding = "2.1"
diff --git a/actix-web/src/http/header/content_disposition.rs b/actix-web/src/http/header/content_disposition.rs
index 8b7101aa1..edcfd632a 100644
--- a/actix-web/src/http/header/content_disposition.rs
+++ b/actix-web/src/http/header/content_disposition.rs
@@ -10,9 +10,10 @@
//! - Browser conformance tests at:
//! - IANA assignment:
+use std::fmt::{self, Write};
+
use once_cell::sync::Lazy;
use regex::Regex;
-use std::fmt::{self, Write};
use super::{ExtendedValue, Header, TryIntoHeaderValue, Writer};
use crate::http::header;
diff --git a/awc/Cargo.toml b/awc/Cargo.toml
index eb9310e26..9da103cb0 100644
--- a/awc/Cargo.toml
+++ b/awc/Cargo.toml
@@ -73,7 +73,7 @@ derive_more = "0.99.5"
futures-core = { version = "0.3.7", default-features = false, features = ["alloc"] }
futures-util = { version = "0.3.7", default-features = false, features = ["alloc", "sink"] }
h2 = "0.3.9"
-http = "0.2.8"
+http = "0.2.5"
itoa = "1"
log =" 0.4"
mime = "0.3"