Changeset

11943:cf47834d3698

mod_admin_shell: Fix showing default HTTP path in module:info Thanks mod_http_openmetrics
author Kim Alvefur <zash@zash.se>
date Thu, 25 Nov 2021 17:07:13 +0100
parents 11942:b4f77a7bf8ab
children 11944:8b5e646dfaa6
files plugins/mod_admin_shell.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Thu Nov 25 16:57:01 2021 +0100
+++ b/plugins/mod_admin_shell.lua	Thu Nov 25 17:07:13 2021 +0100
@@ -443,7 +443,7 @@
 		["adhoc-provider"] = item_name,
 		["auth-provider"] = item_name,
 		["storage-provider"] = item_name,
-		["http-provider"] = function(item, mod) return mod:http_url(item.name); end,
+		["http-provider"] = function(item, mod) return mod:http_url(item.name, item.default_path); end,
 		["net-provider"] = item_name,
 		["measure"] = function(item) return item.name .. " (" .. suf(item.conf and item.conf.unit, " ") .. item.type .. ")"; end,
 		["metric"] = function(item)