Two hacks to make it python2.5 compatible..

.. but still, the http server lib in 2.5 is broken and won't respond
right.

bzr revid: p_christ@hol.gr-20090908163914-xb3i1ojwrl53bv29
This commit is contained in:
P. Christeas 2009-09-08 19:39:14 +03:00
parent 768ec7b320
commit be011d4302
2 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class ThreadedHTTPServer(ConnThreadingMixIn, SimpleXMLRPCDispatcher, HTTPServer)
self.logRequests = logRequests
SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding)
HTTPServer.__init__(self, addr, requestHandler, bind_and_activate)
HTTPServer.__init__(self, addr, requestHandler)
# [Bug #1222790] If possible, set close-on-exec flag; if a
# method spawns a subprocess, the subprocess shouldn't have

View File

@ -182,6 +182,7 @@ class MultiHTTPHandler(FixSendError,BaseHTTPRequestHandler):
"""
protocol_version = "HTTP/1.1"
default_request_version = "HTTP/0.9" # compatibility with py2.5
auth_required_msg = """ <html><head><title>Authorization required</title></head>
<body>You must authenticate to use this service</body><html>\r\r"""