--- d:\TortoiseSVN\bin\python head\SimpleXMLRPCServer.py 2007-05-24 21:28:28.291926600 -0400 +++ d:\TortoiseSVN\bin\python head\SimpleXMLRPCServer.py.updated 2007-05-24 21:33:29.698176600 -0400 @@ -538,6 +538,14 @@ def __init__(self, allow_none=False, encoding=None): SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding) + # Apache on windows generates an incorrect Content-length + # because \n is converted to \r\n if stdout is a terminal + # unless it is set to binary mode + if sys.platform == "win32": + import msvcrt + msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) + + def handle_xmlrpc(self, request_text): """Handle a single XML-RPC request"""