diff --git a/0001-fix-debugger-html.patch b/0001-fix-debugger-html.patch
new file mode 100644
index 0000000000000000000000000000000000000000..28ad7d1e61b863e7590c7660987f64f5d7f45c62
--- /dev/null
+++ b/0001-fix-debugger-html.patch
@@ -0,0 +1,56 @@
+From 4a8f76c289d24a13efc9c6eb8b4e09890140ed82 Mon Sep 17 00:00:00 2001
+From: David Lord
+Date: Mon, 7 Feb 2022 12:04:14 -0800
+Subject: [PATCH] fix debugger html
+
+fix doctype typo
+remove unnecessary type attributes
+let response set charset
+---
+ src/werkzeug/debug/__init__.py | 2 +-
+ src/werkzeug/debug/tbtools.py | 10 +++-------
+ 2 files changed, 4 insertions(+), 8 deletions(-)
+
+diff --git a/src/werkzeug/debug/__init__.py b/src/werkzeug/debug/__init__.py
+index 936a9639..ac513830 100644
+--- a/src/werkzeug/debug/__init__.py
++++ b/src/werkzeug/debug/__init__.py
+@@ -327,7 +327,7 @@ class DebuggedApplication:
+ secret=self.secret,
+ evalex_trusted=is_trusted,
+ )
+- response = Response(html, status=500, content_type="text/html")
++ response = Response(html, status=500, mimetype="text/html")
+
+ try:
+ yield from response(environ, start_response)
+diff --git a/src/werkzeug/debug/tbtools.py b/src/werkzeug/debug/tbtools.py
+index 17e3b361..7ce69519 100644
+--- a/src/werkzeug/debug/tbtools.py
++++ b/src/werkzeug/debug/tbtools.py
+@@ -12,19 +12,15 @@ from ..utils import cached_property
+ from .console import Console
+
+ HEADER = """\
+-
++
+
+
+ %(title)s // Werkzeug Debugger
+-
+-
++
+
+
+-