diff --git a/nselib/http.lua b/nselib/http.lua index fab0729a4..2a1269ccc 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -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 \ No newline at end of file +end