@marcel91200 / caddy Mirror · read-only / commits / dadfe193
Fork 0

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

metrics: fix handler to not run the next route (#3769)

Signed-off-by: Dave Henderson <dhenderson@gmail.com>

Dave Henderson committed Oct 1, 2020 at 12:57 UTC dadfe1933b4ddab649b1bd64563eb8a0e4142979
1 file changed +1 -1
modules/metrics/metrics.go
+1 -1
@@ -85,7 +85,7 @@ func (m *Metrics) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
85
86 func (m Metrics) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error {
87 m.metricsHandler.ServeHTTP(w, r)
88 - return next.ServeHTTP(w, r)
88 + return nil
89 }
90
91 // Interface guards