From a570c434f328a76c712594ec9ba4997e444d4c06 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 7 Oct 2011 23:49:46 +0000 Subject: [PATCH] Simplify. --- scripts/bitcoinrpc-info.nse | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/bitcoinrpc-info.nse b/scripts/bitcoinrpc-info.nse index 0ad27b857..0b1c35a73 100644 --- a/scripts/bitcoinrpc-info.nse +++ b/scripts/bitcoinrpc-info.nse @@ -67,11 +67,9 @@ end function ServiceProxy:remote(req) local httpdata = http.post(self.host, self.port, self.path, self.options, nil, req) - if httpdata.status ~= 200 then - return + if httpdata.status == 200 then + return httpdata.body end - local body = httpdata["body"] - return body end function ServiceProxy:call(method, args)