1
0
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:
ron
2009-08-23 16:58:53 +00:00
parent f8e2fe6429
commit fbf2c3d6a7
2 changed files with 15 additions and 6 deletions

View File

@@ -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>"