mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
getHeader is now case insensitive.
This commit is contained in:
parent
173719e174
commit
c0adb90e28
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue