1
0
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:
jah
2010-07-02 11:35:18 +00:00
parent fafd5a85a7
commit e651aced8c

View File

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