This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Remove extra line ending in CGI XML-RPC responses
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: bquinlan, loewis
Priority: normal Keywords: patch

Created on 2003-04-25 23:21 by bquinlan, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
extra-ending.diff bquinlan, 2003-04-25 23:21 Patch
Messages (2)
msg43491 - (view) Author: Brian Quinlan (bquinlan) * (Python committer) Date: 2003-04-25 23:21
CGI XML-RPC output was being generated as follows:

print 'Content-Type: text/xml'
print 'Content-Length: %d' % len(response)
print
print response

Since the print statement appends a line ending to its 
output, the content-length reported was incorrect. Some 
clients don't like this.
msg43492 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-05-01 05:05
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as 

DocXMLRPCServer.py 1.3
SimpleXMLRPCServer.py 1.5
History
Date User Action Args
2022-04-10 16:08:20adminsetgithub: 38371
2003-04-25 23:21:33bquinlancreate