From 21a31afb55f27b9fecaa8ba5bf7cc1431d89f96e Mon Sep 17 00:00:00 2001 From: wozz Date: Fri, 20 Apr 2018 16:56:12 -0700 Subject: [PATCH] Update handler.go Former-commit-id: f6bd29025c97d04b058584fecb8e0fee91021cb1 --- core/router/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.