diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2009-04-01 20:26:33 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2009-04-01 20:26:33 (GMT) |
commit | 20d114cad2ee622eda56568be65cd703077f43bd (patch) | |
tree | 934b2bd7ecc0ec060fdde8041c4c25e9d1f726c9 /Lib/SimpleXMLRPCServer.py | |
parent | 2ecd3c36b584692f46cddf209f7c09edddd21673 (diff) | |
download | cpython-20d114cad2ee622eda56568be65cd703077f43bd.zip cpython-20d114cad2ee622eda56568be65cd703077f43bd.tar.gz cpython-20d114cad2ee622eda56568be65cd703077f43bd.tar.bz2 |
Fix for issue5040. Adding test for Content-Length
Diffstat (limited to 'Lib/SimpleXMLRPCServer.py')
-rw-r--r-- | Lib/SimpleXMLRPCServer.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ class CGIXMLRPCRequestHandler(SimpleXMLRPCDispatcher): '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) |