summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/caddyhttp.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-01-12 13:34:55 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2020-01-12 13:34:55 -0700
commitfe5a531c58f9714bf379962c51d086a14661cfdb (patch)
treeeeab2813b2c441261d9220a96d6a97377f59e32b /modules/caddyhttp/caddyhttp.go
parent8c0c1a7b8815866ac3b6c9cf100f18bf2f1bbd6d (diff)
http: Fix empty responses
Sigh... this is what I get for writing code when I'm tired and sick. See https://github.com/caddyserver/caddy/commit/8be1f0ea668492000cdefbd937e0359bdc24bfc1#r36764627
Diffstat (limited to 'modules/caddyhttp/caddyhttp.go')
-rw-r--r--modules/caddyhttp/caddyhttp.go2
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)