summaryrefslogtreecommitdiffstats
path: root/src/lib/Component.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-03-16 23:36:28 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-03-16 23:36:28 +0000
commitb7e58e817e6326a6317387fe06db2a6448aea469 (patch)
treef32a0c3bde876e7755344b0f6148fb85642a7ada /src/lib/Component.py
parent69d2e442b110750e432d3f9f3f0de85318ecf967 (diff)
downloadbcfg2-b7e58e817e6326a6317387fe06db2a6448aea469.tar.gz
bcfg2-b7e58e817e6326a6317387fe06db2a6448aea469.tar.bz2
bcfg2-b7e58e817e6326a6317387fe06db2a6448aea469.zip
Move req.cleanup initialization earlier
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4422 ce84e21b-d406-0410-9b95-82705330c041
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)