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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user