1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 10:27:42 +02:00

update actix-web dependency to 4.0

This commit is contained in:
Rob Ede
2022-02-25 23:05:11 +00:00
parent d46ee464e0
commit 73a5ae98b6
10 changed files with 17 additions and 16 deletions

View File

@ -1,7 +1,8 @@
# Changes
## Unreleased - 2021-xx-xx
- Ensure that preflight responses contain a Vary header. [#224]
- Update `actix-web` dependency to 4.0.
- Ensure that preflight responses contain a `Vary` header. [#224]
[#224]: https://github.com/actix/actix-extras/pull/224

View File

@ -19,7 +19,7 @@ path = "src/lib.rs"
[dependencies]
actix-service = "2"
actix-utils = "3"
actix-web = { version = "4.0.0-rc.1", default-features = false }
actix-web = { version = "4", default-features = false }
derive_more = "0.99.5"
futures-util = { version = "0.3.7", default-features = false }
@ -28,6 +28,6 @@ once_cell = "1"
smallvec = "1.6.1"
[dev-dependencies]
actix-web = { version = "4.0.0-rc.2", default_features = false, features = ["macros"] }
actix-web = { version = "4", default_features = false, features = ["macros"] }
env_logger = "0.9"
regex = "1.4"

View File

@ -578,7 +578,7 @@ mod test {
dev::{fn_service, Transform},
http::{header::HeaderName, StatusCode},
test::{self, TestRequest},
web::HttpResponse,
HttpResponse,
};
use super::*;

View File

@ -360,7 +360,7 @@ mod test {
})
.allow_any_method()
.allow_any_header()
.new_transform(test::simple_service(StatusCode::NO_CONTENT))
.new_transform(test::status_service(StatusCode::NO_CONTENT))
.await
.unwrap();