From 0c57267b76083ec8ad76dbdb35c406e674f37ad8 Mon Sep 17 00:00:00 2001 From: batrick Date: Sat, 21 Jun 2008 19:18:56 +0000 Subject: [PATCH] http library now uses make_buffer correctly. --- nselib/http.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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