summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2011-03-20 02:44:30 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2011-03-20 02:44:30 (GMT)
commit1b407fe658fb298986d1ed3f8a71937ac1b3460c (patch)
treec0e8598897fc4b3d8ab7982db6da1b3269fcae75 /Lib
parent877766dee8e60c7971ed0cabba89fbe981c2ab1b (diff)
downloadcpython-1b407fe658fb298986d1ed3f8a71937ac1b3460c.zip
cpython-1b407fe658fb298986d1ed3f8a71937ac1b3460c.tar.gz
cpython-1b407fe658fb298986d1ed3f8a71937ac1b3460c.tar.bz2
Issue #11567 - Let's have the DOCTYPE as HTML instead of XHTML.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/http/server.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/http/server.py b/Lib/http/server.py
index 0cd8d35..fccdc4c 100644
--- a/Lib/http/server.py
+++ b/Lib/http/server.py
@@ -103,11 +103,10 @@ import copy
# Default error message template
DEFAULT_ERROR_MESSAGE = """\
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
<head>
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Error response</title>
</head>
<body>