mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Don't print out a blank line in http-methods.nse when there's nothing to
report.
This commit is contained in:
parent
a90ba28583
commit
1906c0febd
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ action = function(host, port)
|
|||
end
|
||||
end
|
||||
|
||||
return stdnse.strjoin("\n", output)
|
||||
return #output > 0 and stdnse.strjoin("\n", output) or nil
|
||||
end
|
||||
|
||||
local function contains(t, elem)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue