diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-09-17 17:23:58 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-09-17 17:23:58 -0600 |
commit | c82c231ba7ec7c400e4d48ab943f57a6b29a2a2a (patch) | |
tree | f8d7298fd90059ebe694078a5a7d4251e0d953f9 /modules/caddyhttp/app.go | |
parent | 3ee663dee195e5f8ead7879b31131f46cd0fba13 (diff) |
caddyhttp: Remove server name from metrics
For some reason this breaks automatic HTTP->HTTPS redirects. I am not
sure why yet, but as a hotfix remove this until we understand it better.
Diffstat (limited to 'modules/caddyhttp/app.go')
-rw-r--r-- | modules/caddyhttp/app.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/caddyhttp/app.go b/modules/caddyhttp/app.go index c8bbc95..375ca4d 100644 --- a/modules/caddyhttp/app.go +++ b/modules/caddyhttp/app.go @@ -226,8 +226,6 @@ func (app *App) Provision(ctx caddy.Context) error { // route handler so that important security checks are done, etc. primaryRoute := emptyHandler if srv.Routes != nil { - // inject the server name for observability purposes - ctx.Context = contextWithServerName(ctx.Context, srvName) err := srv.Routes.ProvisionHandlers(ctx) if err != nil { return fmt.Errorf("server %s: setting up route handlers: %v", srvName, err) |