diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-05-01 05:05:09 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-05-01 05:05:09 (GMT) |
commit | 9c5ea50c25aa0426069d69b3ad5de208d45762dc (patch) | |
tree | 6376b957b6723dc48594d300fbc6d257441ad47d /Lib/DocXMLRPCServer.py | |
parent | 16ec34eefb57278e9dab483f87be153886bcfe8b (diff) | |
download | cpython-9c5ea50c25aa0426069d69b3ad5de208d45762dc.zip cpython-9c5ea50c25aa0426069d69b3ad5de208d45762dc.tar.gz cpython-9c5ea50c25aa0426069d69b3ad5de208d45762dc.tar.bz2 |
Patch #727805: Remove extra line ending from CGI responses.
Diffstat (limited to 'Lib/DocXMLRPCServer.py')
-rw-r--r-- | Lib/DocXMLRPCServer.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/DocXMLRPCServer.py b/Lib/DocXMLRPCServer.py index 55ec38e..b900c5f 100644 --- a/Lib/DocXMLRPCServer.py +++ b/Lib/DocXMLRPCServer.py @@ -14,6 +14,7 @@ import pydoc import inspect import types import re +import sys from SimpleXMLRPCServer import SimpleXMLRPCServer,\ SimpleXMLRPCRequestHandler,\ @@ -269,7 +270,7 @@ class DocCGIXMLRPCRequestHandler( CGIXMLRPCRequestHandler, print 'Content-Type: text/html' print 'Content-Length: %d' % len(response) print - print response + sys.stdout.write(response) def __init__(self): CGIXMLRPCRequestHandler.__init__(self) |