1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

refine versions

This commit is contained in:
Rob Ede
2023-02-26 21:01:15 +00:00
parent 8cf1e81199
commit 9b77b033b0
3 changed files with 535 additions and 522 deletions

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 {