diff --git a/scripts/bitcoinrpc-info.nse b/scripts/bitcoinrpc-info.nse index 4b08e363d..0ad27b857 100644 --- a/scripts/bitcoinrpc-info.nse +++ b/scripts/bitcoinrpc-info.nse @@ -67,7 +67,7 @@ end function ServiceProxy:remote(req) local httpdata = http.post(self.host, self.port, self.path, self.options, nil, req) - if stdnse.strsplit(" ", httpdata["status-line"])[2] ~= "200" then + if httpdata.status ~= 200 then return end local body = httpdata["body"]