mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +00:00
Don't print out a blank line in http-methods.nse when there's nothing to
report.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user