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:
parent
768ec7b320
commit
be011d4302
|
@ -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
|
||||
|
|
|
@ -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"""
|
||||
|
|
Loading…
Reference in New Issue