From af25f0254e94eb2e2898ba495bfc3de209a49e79 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 22 Aug 2019 13:38:37 -0600 Subject: caddyfile: Support global config block; allow non-empty blocks w/ 0 keys --- caddyconfig/configadapters.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'caddyconfig/configadapters.go') diff --git a/caddyconfig/configadapters.go b/caddyconfig/configadapters.go index 6e5d530..c539176 100644 --- a/caddyconfig/configadapters.go +++ b/caddyconfig/configadapters.go @@ -22,7 +22,7 @@ import ( // Adapter is a type which can adapt a configuration to Caddy JSON. // It returns the results and any warnings, or an error. type Adapter interface { - Adapt(body []byte, options map[string]string) ([]byte, []Warning, error) + Adapt(body []byte, options map[string]interface{}) ([]byte, []Warning, error) } // Warning represents a warning or notice related to conversion. -- cgit v1.2.3