1
0
mirror of https://github.com/actix/examples synced 2025-06-29 10:14:58 +02:00

regererate rustls certs

fixes #445
This commit is contained in:
Rob Ede
2021-10-06 22:42:44 +01:00
parent 8186a8cfea
commit 900a699fba
4 changed files with 1156 additions and 420 deletions

View File

@ -10,8 +10,8 @@ use rustls::{NoClientAuth, ServerConfig};
async fn index(req: HttpRequest) -> HttpResponse {
println!("{:?}", req);
HttpResponse::Ok()
.content_type("text/plain")
.body("Welcome!")
.content_type("text/html; charset=utf-8")
.body("<!DOCTYPE html><html><body><p>Welcome!</p></body></html>")
}
#[actix_web::main]