1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

typos -> text/plain

This commit is contained in:
Gorm Casper
2018-07-04 09:43:54 +02:00
parent c4f264d8b9
commit 296b108bab
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ fn with_param(req: HttpRequest) -> HttpResponse {
println!("{:?}", req);
HttpResponse::Ok()
.content_type("test/plain")
.content_type("text/plain")
.body(format!("Hello {}!", req.match_info().get("name").unwrap()))
}