From b56cd22f723b827994ca51b3a430cb680f3b15ae Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 22 Jun 2016 21:30:40 +0100 Subject: [PATCH] update to caddy 0.9.2 --- setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.go b/setup.go index 16b26235..7b32c326 100644 --- a/setup.go +++ b/setup.go @@ -24,7 +24,7 @@ func setup(c *caddy.Controller) error { return err } - httpserver.GetConfig(c.Key).AddMiddleware(func(next httpserver.Handler) httpserver.Handler { + httpserver.GetConfig(c).AddMiddleware(func(next httpserver.Handler) httpserver.Handler { return FileManager{Configs: configs, Next: next} })