Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b407fe

Browse files
committed
Issue #11567 - Let's have the DOCTYPE as HTML instead of XHTML.
1 parent 877766d commit 1b407fe

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Lib/http/server.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,10 @@
103103

104104
# Default error message template
105105
DEFAULT_ERROR_MESSAGE = """\
106-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
107-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
108-
<html xmlns="http://www.w3.org/1999/xhtml">
106+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
107+
"http://www.w3.org/TR/html4/strict.dtd">
109108
<head>
110-
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
109+
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
111110
<title>Error response</title>
112111
</head>
113112
<body>

0 commit comments

Comments
 (0)