mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
getHeader is now case insensitive.
This commit is contained in:
@@ -429,7 +429,9 @@ Response = {
|
||||
getHeader = function(self,name)
|
||||
for _, line in ipairs(self.tbl) do
|
||||
local header, value = line:match("^(.-): (.*)$")
|
||||
if ( header == name ) then return value end
|
||||
if ( header and header:lower() == name:lower() ) then
|
||||
return value
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user