mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Strip newlines from the the portion of the http status line starting after a
space.
This commit is contained in:
parent
fafd5a85a7
commit
e651aced8c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue