mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 19:01:56 +00:00
http library now uses make_buffer correctly.
This commit is contained in:
parent
fa93527653
commit
0c57267b76
1 changed files with 4 additions and 4 deletions
|
|
@ -104,13 +104,13 @@ request = function( host, port, data, options )
|
|||
|
||||
local buffer = stdnse.make_buffer( socket, "\r?\n" )
|
||||
|
||||
local status, line, _
|
||||
local line, _
|
||||
local header, body = {}, {}
|
||||
|
||||
-- header loop
|
||||
while true do
|
||||
status, line = buffer()
|
||||
if (not status or line == "") then break end
|
||||
line = buffer()
|
||||
if not line then break end
|
||||
table.insert(header,line)
|
||||
end
|
||||
|
||||
|
|
@ -168,4 +168,4 @@ get_default_timeout = function( nmap_timing )
|
|||
timeout.request = 7000
|
||||
end
|
||||
return timeout
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue