Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
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
Matthew Holt committed
Jan 12, 2020 at 13:34 UTC
fe5a531c58f9714bf379962c51d086a14661cfdb
1 file changed
+1
-1
modules/caddyhttp/caddyhttp.go
+1
-1
@@ -172,7 +172,7 @@ func (app *App) Provision(ctx caddy.Context) error {
172
}
173
// pre-compile the handler chain, and be sure to wrap it in our
174
// route handler so that important security checks are done, etc.
175
- srv.primaryHandlerChain = srv.Routes.Compile()
175
+ primaryRoute = srv.Routes.Compile()
176
}
177
srv.primaryHandlerChain = srv.wrapPrimaryRoute(primaryRoute)
178