summaryrefslogtreecommitdiffstats
path: root/src/lib/Component.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Component.py')
-rw-r--r--src/lib/Component.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Component.py b/src/lib/Component.py
index b70e76e05..c059bc306 100644
--- a/src/lib/Component.py
+++ b/src/lib/Component.py
@@ -30,7 +30,6 @@ class CobaltXMLRPCRequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHandler):
def do_POST(self):
'''Overload do_POST to pass through client address information'''
try:
- self.cleanup = True
# get arguments
data = self.rfile.read(int(self.headers["content-length"]))
@@ -80,6 +79,7 @@ class CobaltXMLRPCRequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHandler):
def setup(self):
'''Setup a working connection'''
+ self.cleanup = True
self.connection = self.request
self.rfile = socket._fileobject(self.request, "rb", self.rbufsize)
self.wfile = socket._fileobject(self.request, "wb", self.wbufsize)