whoami icon indicating copy to clipboard operation
whoami copied to clipboard

Enable benchHandler on "/bench/" in addition of "/bench"

Open mvertes opened this issue 5 years ago • 0 comments

Adding the trailing slash allows to trigger the bench handler for performance measurements in situations where a trailing slash character '/' is added to the request.

For example, in traefik addPrefix middleware, if you specify a "/bench" prefix, a request on "http://localhost" will be transformed from "GET /" to "GET /bench/" with no way to remove the trailing '/' (at least without adding another rewrite rule, which would modify measurements).

mvertes avatar Apr 27 '21 13:04 mvertes