mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +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
|
||||
return data['status-line']
|
||||
else
|
||||
return string.sub(data['status-line'], space + 1)
|
||||
return (string.sub(data['status-line'], space + 1)):gsub('\r?\n', '')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user