Fix http.table_augment which was preventing user-supplied HTTP headers from

being sent in HTTP requests.
This commit is contained in:
jah 2009-05-03 19:03:53 +00:00
parent e286a8fdfa
commit d757338fa2

View file

@ -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