diff options
-rw-r--r-- | src/lib/Proxy.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/Proxy.py b/src/lib/Proxy.py index e24a70aec..788cfde0f 100644 --- a/src/lib/Proxy.py +++ b/src/lib/Proxy.py @@ -265,13 +265,12 @@ class XMLRPCTransport(xmlrpclib.Transport): self.send_content(h, request_body) errcode, errmsg, headers = h.getreply() - msglen = int(headers.dict['content-length']) if errcode != 200: raise xmlrpclib.ProtocolError(host + handler, errcode, errmsg, headers) self.verbose = verbose - + msglen = int(headers.dict['content-length']) return self._get_response(h.getfile(), msglen) def _get_response(self, fd, length): |