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