1
0
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:
HeartDev 2021-08-23 13:43:35 +00:00 committed by GitHub
parent a986fa7519
commit e503dec23a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")
}