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:
parent
3ca462355b
commit
61fc66c5e5
@ -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"
|
||||
|
@ -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()
|
||||
})))
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user