1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Added 'rawheader' when parsing http requests. It saves the header fields, in order, preserving the case. Change http-headers.nse to read this instead of the processed headers.

This commit is contained in:
ron
2009-08-27 15:24:09 +00:00
parent d254c85b42
commit fc2b575fba
2 changed files with 5 additions and 3 deletions

View File

@@ -64,8 +64,8 @@ action = function(host, port)
end
local response = " \n"
for i, v in pairs(result.header) do
response = response .. string.format(" %s: %s\n", i, v)
for _, header in pairs(result.rawheader) do
response = response .. header .. "\n"
end
return response