Default content-type to application/x-www-form-urlencoded at the top
level of a form. This means that browsers that omit the content-type
header when sending a POST command aren't penalized so heavily.
diff --git a/Lib/cgi.py b/Lib/cgi.py
index 97ecbbb..5493092 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -802,7 +802,7 @@
headers = {'content-type':
"application/x-www-form-urlencoded"}
if headers is None:
- headers = {}
+ headers = {'content-type': "application/x-www-form-urlencoded"}
if environ.has_key('CONTENT_TYPE'):
headers['content-type'] = environ['CONTENT_TYPE']
if environ.has_key('CONTENT_LENGTH'):