mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
typos -> text/plain
This commit is contained in:
@ -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()))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user