This fixes the case where the metrics endpoint matches a configured pattern.
The problem was introduced by 2139a066: if there is a pattern that matches the metrics endpoint (for instance /metrics) then the current implementation will never return the metrics response.
This fixes the case where the metrics endpoint matches a configured pattern. The problem was introduced by 2139a066: if there is a pattern that matches the metrics endpoint (for instance
/metrics
) then the current implementation will never return the metrics response.