1
0
mirror of https://github.com/actix/examples synced 2024-11-23 14:31:07 +01:00

refine versions

This commit is contained in:
Rob Ede 2023-02-26 21:01:15 +00:00
parent 8cf1e81199
commit 9b77b033b0
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
3 changed files with 535 additions and 522 deletions

1047
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -68,7 +68,7 @@ resolver = "2"
[workspace.dependencies]
actix = "0.13"
actix-broker = "0.4.2"
actix-broker = "0.4"
actix-codec = "0.5"
actix-cors = "0.6"
actix-files = "0.6"
@ -78,9 +78,9 @@ actix-multipart = "0.4"
actix-protobuf = "0.9"
actix-session = "0.7"
actix-test = "0.1"
actix-tls = "3.0"
actix-tls = "3"
actix-utils = "3"
actix-web = "4"
actix-web = "4.3"
actix-web-actors = "4.1"
actix-web-lab = "0.18"
actix-ws = "0.2.5"
@ -93,4 +93,4 @@ log = "0.4"
rand = "0.8"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1.25.0", features = ["sync"] }
tokio = { version = "1.24.2", features = ["sync"] }

View File

@ -47,7 +47,7 @@ async fn main() -> std::io::Result<()> {
// handle the request and if it's "http" then a response with redirect status code
// will be sent whose "location" header will be same as before, with just "http"
// changed to "https"
//
if sreq.connection_info().scheme() == "https" {
Either::Left(srv.call(sreq).map(|res| res))
} else {