From b5895754725aea5c83d9bc781c49ee77ff4b56ca Mon Sep 17 00:00:00 2001 From: batrick Date: Mon, 23 Jun 2008 03:42:57 +0000 Subject: [PATCH] Applied Jah's patch for http.lua discussed in: http://seclists.org/nmap-dev/2008/q2/0833.html --- nselib/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/http.lua b/nselib/http.lua index ffe432846..b93c99977 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -110,7 +110,7 @@ request = function( host, port, data, options ) -- header loop while true do line = buffer() - if not line then break end + if (not line or line == "") then break end table.insert(header,line) end