Commit 9c5ea50c authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #727805: Remove extra line ending from CGI responses.

parent 16ec34ee
......@@ -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)
......
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment