Fix for issue5040. Adding test for Content-Length

This commit is contained in:
Senthil Kumaran 2009-04-01 20:26:33 +00:00
parent 2ecd3c36b5
commit 20d114cad2
2 changed files with 29 additions and 1 deletions

View file

@ -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)