mirror of
https://github.com/python/cpython.git
synced 2025-07-27 13:14:41 +00:00
Fix for issue5040. Adding test for Content-Length
This commit is contained in:
parent
2ecd3c36b5
commit
20d114cad2
2 changed files with 29 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue