mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Merged revisions 70940 via svnmerge
........ r70940 | georg.brandl | 2009-03-31 23:21:14 -0500 (Di, 31 Mär 2009) | 2 lines The SimpleXMLRPCServer's CGI handler now runs like a pony. ........
This commit is contained in:
parent
e0cbd69659
commit
99412e559b
1 changed files with 5 additions and 1 deletions
|
@ -588,8 +588,12 @@ class CGIXMLRPCRequestHandler(SimpleXMLRPCDispatcher):
|
|||
self.handle_get()
|
||||
else:
|
||||
# POST data is normally available through stdin
|
||||
try:
|
||||
length = int(os.environ.get('CONTENT_LENGTH', None))
|
||||
except ValueError:
|
||||
length = -1
|
||||
if request_text is None:
|
||||
request_text = sys.stdin.read()
|
||||
request_text = sys.stdin.read(length)
|
||||
|
||||
self.handle_xmlrpc(request_text)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue