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.
This commit is contained in:
Matthew Holt 2020-09-17 17:23:58 -06:00
parent 3ee663dee1
commit c82c231ba7
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
3 changed files with 0 additions and 21 deletions

View file

@ -94,10 +94,6 @@ func serverNameFromContext(ctx context.Context) string {
return srvName
}
func contextWithServerName(ctx context.Context, serverName string) context.Context {
return context.WithValue(ctx, ctxKeyServerName{}, serverName)
}
type metricsInstrumentedHandler struct {
labels prometheus.Labels
statusLabels prometheus.Labels