diff options
-rw-r--r-- | modules/caddyhttp/caddyhttp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/caddyhttp.go b/modules/caddyhttp/caddyhttp.go index 7381e51..389a2d2 100644 --- a/modules/caddyhttp/caddyhttp.go +++ b/modules/caddyhttp/caddyhttp.go @@ -172,7 +172,7 @@ func (app *App) Provision(ctx caddy.Context) error { } // pre-compile the handler chain, and be sure to wrap it in our // route handler so that important security checks are done, etc. - srv.primaryHandlerChain = srv.Routes.Compile() + primaryRoute = srv.Routes.Compile() } srv.primaryHandlerChain = srv.wrapPrimaryRoute(primaryRoute) |