1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00

Updated security/openssl to v4. (#515)

This commit is contained in:
Christopher Gubbin 2022-01-31 12:59:26 +00:00 committed by GitHub
parent 3ca462355b
commit 61fc66c5e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -2,9 +2,9 @@
name = "openssl-example"
version = "0.2.0"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
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"

View File

@ -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()
})))
})