mod_http: Use hostname from the correct context (thanks gryffus)
[prosody.git] / core / modulemanager.lua
index 48afe787aee98141857612a6f376856304bfcb27..535c227b13e908d25ad9346c78c7f63c9ac0c85a 100644 (file)
@@ -19,7 +19,7 @@ local prosody = prosody;
 
 local pcall, xpcall = pcall, xpcall;
 local setmetatable, rawget = setmetatable, rawget;
-local pairs, type, tostring, t_insert = pairs, type, tostring, table.insert;
+local ipairs, pairs, type, tostring, t_insert = ipairs, pairs, type, tostring, table.insert;
 
 local debug_traceback = debug.traceback;
 local unpack, select = unpack, select;