0.1.8-beta fix content-type error

This commit is contained in:
2021-08-14 22:08:26 +08:00
parent b04ddc4585
commit 221be83bc5
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ struct IndexContext<'r> {
#[derive(Responder)]
enum Resp {
#[response(status = 200)]
#[response(status = 200, content_type = "text/html; charset=utf-8")]
Index(Template),
#[response(status = 404)]
NotFound(&'static str),