summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/app.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-09-17 17:23:58 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-09-17 17:23:58 -0600
commitc82c231ba7ec7c400e4d48ab943f57a6b29a2a2a (patch)
treef8d7298fd90059ebe694078a5a7d4251e0d953f9 /modules/caddyhttp/app.go
parent3ee663dee195e5f8ead7879b31131f46cd0fba13 (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.go2
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)