mirror of
https://github.com/actix/examples
synced 2024-11-27 16:02:57 +01:00
refine versions
This commit is contained in:
parent
8cf1e81199
commit
9b77b033b0
1047
Cargo.lock
generated
1047
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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"] }
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user