diff --git a/nselib/http.lua b/nselib/http.lua index 59f7678d1..3df0086ce 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -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