Alexandre Vassalotti added the comment:

Looks good to me. I updated the patch to use .get() with a default value
instead of a if-statement with .has_key().

----------
nosy: +alexandre.vassalotti
priority:  -> normal
Added file: http://bugs.python.org/file8869/check-content-length.patch

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1214>
__________________________________
Index: Lib/SimpleXMLRPCServer.py
===================================================================
--- Lib/SimpleXMLRPCServer.py	(revision 59313)
+++ Lib/SimpleXMLRPCServer.py	(working copy)
@@ -599,7 +599,8 @@
         else:
             # POST data is normally available through stdin
             if request_text is None:
-                request_text = sys.stdin.read()
+                content_length = os.environ.get('CONTENT_LENGTH', -1)
+                request_text = sys.stdin.read(content_length)
 
             self.handle_xmlrpc(request_text)
 
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to