1
0
mirror of https://github.com/actix/examples synced 2024-11-23 14:31:07 +01: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

@ -14,7 +14,7 @@ cargo run
- [http://localhost:8080/](http://localhost:8080/static/index.html)
- [http://localhost:8080/async/bob](http://localhost:8080/async/bob)
- [http://localhost:8080/user/bob/](http://localhost:8080/user/bob/) plain/text download
- [http://localhost:8080/user/bob/](http://localhost:8080/user/bob/) text/plain download
- [http://localhost:8080/test](http://localhost:8080/test) (return status switch GET or POST or other)
- [http://localhost:8080/favicon](http://localhost:8080/static/favicon.htmicol)
- [http://localhost:8080/welcome](http://localhost:8080/static/welcome.html)

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()))
}