From 37507349a3660739831222bd4f9ef4379f9b3710 Mon Sep 17 00:00:00 2001 From: ron Date: Thu, 27 Aug 2009 21:35:52 +0000 Subject: [PATCH] Changed 'pairs' to 'ipairs' when looping through the header (thanks to Patrick for pointing this out) --- scripts/http-headers.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/http-headers.nse b/scripts/http-headers.nse index 3138dbf8c..6181f9878 100644 --- a/scripts/http-headers.nse +++ b/scripts/http-headers.nse @@ -82,7 +82,7 @@ action = function(host, port) end local response = "(" .. request_type .. " used)\n" - for _, header in pairs(result.rawheader) do + for _, header in ipairs(result.rawheader) do response = response .. header .. "\n" end