mirror of
https://github.com/actix/actix-website
synced 2025-01-22 16:15:56 +01:00
Correct the content-type in the ResponseBiuilder example (#236)
It's text/plain not plain/text
This commit is contained in:
parent
a986fa7519
commit
e503dec23a
@ -11,7 +11,7 @@ use actix_web::HttpResponse;
|
||||
|
||||
async fn index() -> HttpResponse {
|
||||
HttpResponse::Ok()
|
||||
.content_type("plain/text")
|
||||
.content_type("text/plain")
|
||||
.header("X-Hdr", "sample")
|
||||
.body("data")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user