mod_http: Use hostname from the correct context (thanks gryffus)
[prosody.git] / core / moduleapi.lua
index 764ed52ae63667e6c1e686594867b8d168f9e905..ed75669b60b64f6c90e5c19f9ee843328f20ec55 100644 (file)
@@ -335,6 +335,7 @@ function api:provides(name, item)
                end
                item.name = item_name;
        end
+       item._provided_by = self.name;
        self:add_item(name.."-provider", item);
 end