mirror of
https://github.com/actix/examples
synced 2024-11-23 22:41:07 +01:00
Fixes Incorrect Return of body in multipart example (#407)
This commit is contained in:
parent
7487a81e90
commit
e86d5ff214
@ -35,7 +35,9 @@ fn index() -> HttpResponse {
|
|||||||
</body>
|
</body>
|
||||||
</html>"#;
|
</html>"#;
|
||||||
|
|
||||||
HttpResponse::Ok().body(html)
|
HttpResponse::Ok()
|
||||||
|
.content_type("text/html; charset=utf-8")
|
||||||
|
.body(html)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[actix_web::main]
|
#[actix_web::main]
|
||||||
|
@ -69,7 +69,9 @@ fn index() -> HttpResponse {
|
|||||||
</script>
|
</script>
|
||||||
</html>"#;
|
</html>"#;
|
||||||
|
|
||||||
HttpResponse::Ok().body(html)
|
HttpResponse::Ok()
|
||||||
|
.content_type("text/html; charset=utf-8")
|
||||||
|
.body(html)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[actix_web::main]
|
#[actix_web::main]
|
||||||
|
@ -37,7 +37,9 @@ fn index() -> HttpResponse {
|
|||||||
</body>
|
</body>
|
||||||
</html>"#;
|
</html>"#;
|
||||||
|
|
||||||
HttpResponse::Ok().body(html)
|
HttpResponse::Ok()
|
||||||
|
.content_type("text/html; charset=utf-8")
|
||||||
|
.body(html)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[actix_web::main]
|
#[actix_web::main]
|
||||||
|
Loading…
Reference in New Issue
Block a user