]> granicus.if.org Git - python/commitdiff
Issue #11567 - Let's have the DOCTYPE as HTML instead of XHTML.
authorSenthil Kumaran <orsenthil@gmail.com>
Sun, 20 Mar 2011 02:44:30 +0000 (10:44 +0800)
committerSenthil Kumaran <orsenthil@gmail.com>
Sun, 20 Mar 2011 02:44:30 +0000 (10:44 +0800)
Lib/http/server.py

index 0cd8d35e4bfc952d902be84967a110082615b45c..fccdc4c92eeb32ffe88a4c6b396a135e2e733d06 100644 (file)
@@ -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>