mod_prometheus/mod_prometheus.lua
changeset 3956 343dc9dd70dd
parent 3153 ccbfe7df02dc
child 4546 fb4a50bf60f1
--- a/mod_prometheus/mod_prometheus.lua	Sat Mar 21 15:03:47 2020 +0100
+++ b/mod_prometheus/mod_prometheus.lua	Sat Mar 21 18:05:22 2020 +0100
@@ -6,7 +6,6 @@
 -- This module is MIT/X11 licensed.
 
 module:set_global();
-module:depends "http";
 
 local tostring = tostring;
 local t_insert = table.insert;
@@ -140,6 +139,7 @@
 end
 
 function module.add_host(module)
+	module:depends "http";
 	module:provides("http", {
 		default_path = "metrics";
 		route = {