commit | 20d114cad2ee622eda56568be65cd703077f43bd | [log] [tgz] |
---|---|---|
author | Senthil Kumaran <orsenthil@gmail.com> | Wed Apr 01 20:26:33 2009 +0000 |
committer | Senthil Kumaran <orsenthil@gmail.com> | Wed Apr 01 20:26:33 2009 +0000 |
tree | 934b2bd7ecc0ec060fdde8041c4c25e9d1f726c9 | |
parent | 2ecd3c36b584692f46cddf209f7c09edddd21673 [diff] [blame] |
Fix for issue5040. Adding test for Content-Length
diff --git a/Lib/SimpleXMLRPCServer.py b/Lib/SimpleXMLRPCServer.py index b304e45..e9bda9a 100644 --- a/Lib/SimpleXMLRPCServer.py +++ b/Lib/SimpleXMLRPCServer.py
@@ -580,7 +580,7 @@ 'explain' : explain } print 'Status: %d %s' % (code, message) - print 'Content-Type: text/html' + print 'Content-Type: %s' % BaseHTTPServer.DEFAULT_ERROR_CONTENT_TYPE print 'Content-Length: %d' % len(response) print sys.stdout.write(response)