mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 06:56:38 +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:
parent
f8e2fe6429
commit
fbf2c3d6a7
2 changed files with 15 additions and 6 deletions
|
|
@ -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>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue