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