1
0
mirror of https://github.com/actix/actix-website synced 2025-08-18 12:05:33 +02:00

Correct the content-type in the ResponseBiuilder example (#236)

It's text/plain not plain/text
This commit is contained in:
HeartDev
2021-08-23 13:43:35 +00:00
committed by GitHub
parent a986fa7519
commit e503dec23a

View File

@@ -11,7 +11,7 @@ use actix_web::HttpResponse;
async fn index() -> HttpResponse { async fn index() -> HttpResponse {
HttpResponse::Ok() HttpResponse::Ok()
.content_type("plain/text") .content_type("text/plain")
.header("X-Hdr", "sample") .header("X-Hdr", "sample")
.body("data") .body("data")
} }