mirror of
https://github.com/nmap/nmap.git
synced 2025-12-11 10:19:03 +00:00
Strip newlines from the the portion of the http status line starting after a
space.
This commit is contained in:
@@ -1348,7 +1348,7 @@ function get_status_string(data)
|
|||||||
if(space == nil) then
|
if(space == nil) then
|
||||||
return data['status-line']
|
return data['status-line']
|
||||||
else
|
else
|
||||||
return string.sub(data['status-line'], space + 1)
|
return (string.sub(data['status-line'], space + 1)):gsub('\r?\n', '')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user