diff --git a/core/router/handler.go b/core/router/handler.go index 38b03a71..24ecfc5d 100644 --- a/core/router/handler.go +++ b/core/router/handler.go @@ -152,7 +152,7 @@ func (h *routerHandler) HandleRequest(ctx context.Context) { path := ctx.Path() if !ctx.Application().ConfigurationReadOnly().GetDisablePathCorrection() { - if len(path) > 1 && strings.HasSuffix(path, '/') { + if len(path) > 1 && strings.HasSuffix(path, "/") { // Remove trailing slash and client-permanent rule for redirection, // if confgiuration allows that and path has an extra slash.