mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix http.table_augment which was preventing user-supplied HTTP headers from
being sent in HTTP requests.
This commit is contained in:
parent
e286a8fdfa
commit
d757338fa2
1 changed files with 3 additions and 3 deletions
|
|
@ -38,10 +38,10 @@ local stdnse = require 'stdnse'
|
|||
-- doesn't have.
|
||||
local function table_augment(to, from)
|
||||
for k, v in pairs(from) do
|
||||
if to[v] then
|
||||
table_copy(to[v], from[v])
|
||||
if type( to[k] ) == 'table' then
|
||||
table_augment(to[k], from[k])
|
||||
else
|
||||
to[v] = from[v]
|
||||
to[k] = from[k]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue