From 9318a624a14bab5fa373d22d8c9e8621282e8b43 Mon Sep 17 00:00:00 2001 From: Nicolas CARPi Date: Tue, 20 Aug 2024 15:12:23 +0200 Subject: [PATCH] CLEANUP: stats: use modern DOCTYPE tag Switching the stats page doctype to the modern standard is shorter and less complex, and is the recommended doctype by current HTML standard. It makes it clear that we do not want to run in quirks mode. More information below. Quirks mode: https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode HTML Standard: https://html.spec.whatwg.org/multipage/syntax.html#the-doctype --- src/stats-html.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stats-html.c b/src/stats-html.c index a8e63a2e2..c69fb9d2a 100644 --- a/src/stats-html.c +++ b/src/stats-html.c @@ -59,8 +59,7 @@ void stats_dump_html_head(struct appctx *appctx) /* WARNING! This must fit in the first buffer !!! */ chunk_appendf(chk, - "\n" + "\n" "Statistics Report for " PRODUCT_NAME "%s%s\n" "\n" "\n"