mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 01:49:03 +00:00
Print the http status along with the result, if it isn't 200 OK. This was the original behaviour, but it got lost along the way.
This commit is contained in:
@@ -948,7 +948,7 @@ end
|
||||
--
|
||||
--@param data The data returned by a HTTP request (can be nil or empty)
|
||||
--@return The status string, the status code, or "<unknown status>".
|
||||
local function get_status_string(data)
|
||||
function get_status_string(data)
|
||||
-- Make sure we have valid data
|
||||
if(data == nil) then
|
||||
return "<unknown status>"
|
||||
|
||||
Reference in New Issue
Block a user