summaryrefslogtreecommitdiffstats
path: root/Lib/SimpleXMLRPCServer.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-05-01 05:05:09 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-05-01 05:05:09 (GMT)
commit9c5ea50c25aa0426069d69b3ad5de208d45762dc (patch)
tree6376b957b6723dc48594d300fbc6d257441ad47d /Lib/SimpleXMLRPCServer.py
parent16ec34eefb57278e9dab483f87be153886bcfe8b (diff)
downloadcpython-9c5ea50c25aa0426069d69b3ad5de208d45762dc.zip
cpython-9c5ea50c25aa0426069d69b3ad5de208d45762dc.tar.gz
cpython-9c5ea50c25aa0426069d69b3ad5de208d45762dc.tar.bz2
Patch #727805: Remove extra line ending from CGI responses.
Diffstat (limited to 'Lib/SimpleXMLRPCServer.py')
-rw-r--r--Lib/SimpleXMLRPCServer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/SimpleXMLRPCServer.py b/Lib/SimpleXMLRPCServer.py
index 54533bf..fd8be18 100644
--- a/Lib/SimpleXMLRPCServer.py
+++ b/Lib/SimpleXMLRPCServer.py
@@ -462,7 +462,7 @@ class CGIXMLRPCRequestHandler(SimpleXMLRPCDispatcher):
print 'Content-Type: text/xml'
print 'Content-Length: %d' % len(response)
print
- print response
+ sys.stdout.write(response)
def handle_get(self):
"""Handle a single HTTP GET request.
@@ -485,7 +485,7 @@ class CGIXMLRPCRequestHandler(SimpleXMLRPCDispatcher):
print 'Content-Type: text/html'
print 'Content-Length: %d' % len(response)
print
- print response
+ sys.stdout.write(reponse)
def handle_request(self, request_text = None):
"""Handle a single XML-RPC request passed through a CGI post method.