summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2020-10-01 12:57:14 -0400
committerGitHub <noreply@github.com>2020-10-01 10:57:14 -0600
commitdadfe1933b4ddab649b1bd64563eb8a0e4142979 (patch)
treec583b2120218d6d0f39ccb342a755f51b5cc5f3a
parent85152679ce910d0993a2902ec00d199b8cc14e4d (diff)
metrics: fix handler to not run the next route (#3769)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
-rw-r--r--modules/metrics/metrics.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/metrics/metrics.go b/modules/metrics/metrics.go
index eab6342..eff364e 100644
--- a/modules/metrics/metrics.go
+++ b/modules/metrics/metrics.go
@@ -85,7 +85,7 @@ func (m *Metrics) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
func (m Metrics) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error {
m.metricsHandler.ServeHTTP(w, r)
- return next.ServeHTTP(w, r)
+ return nil
}
// Interface guards