mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-13 22:51:08 -05:00
metrics: fix handler to not run the next route (#3769)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
This commit is contained in:
parent
85152679ce
commit
dadfe1933b
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
func (m Metrics) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error {
|
||||||
m.metricsHandler.ServeHTTP(w, r)
|
m.metricsHandler.ServeHTTP(w, r)
|
||||||
return next.ServeHTTP(w, r)
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Interface guards
|
// Interface guards
|
||||||
|
|
Loading…
Add table
Reference in a new issue