diff --git a/security/openssl/Cargo.toml b/security/openssl/Cargo.toml index 85c3b15d..2b8fa347 100644 --- a/security/openssl/Cargo.toml +++ b/security/openssl/Cargo.toml @@ -2,9 +2,9 @@ name = "openssl-example" version = "0.2.0" authors = ["Nikolay Kim "] -edition = "2018" +edition = "2021" [dependencies] -actix-web = { version = "3", features = ["openssl"] } -env_logger = "0.8" +actix-web = { version = "4.0.0-beta.21", features = ["openssl"] } +env_logger = "0.9" openssl = "0.10" diff --git a/security/openssl/src/main.rs b/security/openssl/src/main.rs index d2c679be..6a0cab4d 100644 --- a/security/openssl/src/main.rs +++ b/security/openssl/src/main.rs @@ -34,7 +34,7 @@ async fn main() -> io::Result<()> { // with path parameters .service(web::resource("/").route(web::get().to(|| { HttpResponse::Found() - .header("LOCATION", "/index.html") + .append_header(("LOCATION", "/index.html")) .finish() }))) })