From e503dec23a6c2a532ee1f90aebcd1ce8b82f17a4 Mon Sep 17 00:00:00 2001 From: HeartDev <88726114+lt3Dev@users.noreply.github.com> Date: Mon, 23 Aug 2021 13:43:35 +0000 Subject: [PATCH] Correct the content-type in the ResponseBiuilder example (#236) It's text/plain not plain/text --- examples/responses/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/responses/src/main.rs b/examples/responses/src/main.rs index a43754e..46076eb 100644 --- a/examples/responses/src/main.rs +++ b/examples/responses/src/main.rs @@ -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") }