From c2f0b88b023efc5b7961429885e13dce223b1545 Mon Sep 17 00:00:00 2001 From: Felix Wittwer Date: Sat, 27 Aug 2022 20:20:11 +0200 Subject: [PATCH] Quirks Mode no more! (#169) * Serve standard mode documents * One of these days I'll remember to run rustfmt and clippy, I promise --- src/server/views/html/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/views/html/mod.rs b/src/server/views/html/mod.rs index 39770d1..6d2b549 100644 --- a/src/server/views/html/mod.rs +++ b/src/server/views/html/mod.rs @@ -2,7 +2,7 @@ use std::time::Duration; use hyper::header::CONTENT_TYPE; use hyper::{Body, Response}; -use maud::{html, Markup, Render}; +use maud::{html, Markup, Render, DOCTYPE}; pub mod error; pub mod index; @@ -13,6 +13,7 @@ use crate::server::SELF_BASE_URL; fn render_html(title: &str, body: B) -> Response { let rendered = html! { + (DOCTYPE) html { head { meta charset="utf-8";