mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
Patch #727805: Remove extra line ending from CGI responses.
This commit is contained in:
parent
16ec34eefb
commit
9c5ea50c25
2 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue