mirror of
https://github.com/actix/examples
synced 2024-11-23 22:41:07 +01:00
Updated security/openssl to v4. (#515)
This commit is contained in:
parent
3ca462355b
commit
61fc66c5e5
@ -2,9 +2,9 @@
|
|||||||
name = "openssl-example"
|
name = "openssl-example"
|
||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = { version = "3", features = ["openssl"] }
|
actix-web = { version = "4.0.0-beta.21", features = ["openssl"] }
|
||||||
env_logger = "0.8"
|
env_logger = "0.9"
|
||||||
openssl = "0.10"
|
openssl = "0.10"
|
||||||
|
@ -34,7 +34,7 @@ async fn main() -> io::Result<()> {
|
|||||||
// with path parameters
|
// with path parameters
|
||||||
.service(web::resource("/").route(web::get().to(|| {
|
.service(web::resource("/").route(web::get().to(|| {
|
||||||
HttpResponse::Found()
|
HttpResponse::Found()
|
||||||
.header("LOCATION", "/index.html")
|
.append_header(("LOCATION", "/index.html"))
|
||||||
.finish()
|
.finish()
|
||||||
})))
|
})))
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user