Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9c5ea50c
Commit
9c5ea50c
authored
May 01, 2003
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #727805: Remove extra line ending from CGI responses.
parent
16ec34ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Lib/DocXMLRPCServer.py
Lib/DocXMLRPCServer.py
+2
-1
Lib/SimpleXMLRPCServer.py
Lib/SimpleXMLRPCServer.py
+2
-2
No files found.
Lib/DocXMLRPCServer.py
View file @
9c5ea50c
...
...
@@ -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)
...
...
Lib/SimpleXMLRPCServer.py
View file @
9c5ea50c
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment