Commit e92d4b6f authored by Georg Brandl's avatar Georg Brandl

The SimpleXMLRPCServer's CGI handler now runs like a pony.

parent 02cb0eb2
......@@ -598,8 +598,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)
......
......@@ -200,6 +200,8 @@ Core and Builtins
Library
-------
- Actually make the SimpleXMLRPCServer CGI handler work.
- Issue #2522: locale.format now checks its first argument to ensure it has
been passed only one pattern, avoiding mysterious errors where it appeared
that it was failing to do localization.
......
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