0.1.8-beta fix content-type error

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

2
Cargo.lock generated
View File

@ -2174,7 +2174,7 @@ checksum = "d7cff876b8f18eed75a66cf49b65e7f967cb354a7aa16003fb55dbfd25b44b4f"
[[package]]
name = "web"
version = "0.1.7-beta"
version = "0.1.8-beta"
dependencies = [
"chrono",
"clap",

View File

@ -3,7 +3,7 @@ authors = ["Tim_Paik <timpaikc@outlook.com>"]
description = "simple http server written in rust"
edition = "2018"
name = "web"
version = "0.1.7-beta"
version = "0.1.8-beta"
[dependencies]
chrono = "0.4"

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),