From d617bffa2b759a3cfdd6a1ad44cc4649f9e57f3f Mon Sep 17 00:00:00 2001 From: ReVoLt112 <10256539+ReVoLt112@users.noreply.github.com> Date: Mon, 26 Feb 2024 14:27:37 +0100 Subject: [PATCH] Update main.rs Fix get plain text instead of HTML on 404 --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a4000e1..2196625 100644 --- a/src/main.rs +++ b/src/main.rs @@ -550,7 +550,7 @@ fn get_raw(id: String, state: State) -> Response { Response::build() .status(Status::Ok) - .header(ContentType::Plain) + .header(ContentType::HTML) .sized_body(Cursor::new(data)) .finalize() }