mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Simplify.
This commit is contained in:
parent
1005f19805
commit
a570c434f3
1 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue