mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
refine versions
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user