diff --git a/gin.go b/gin.go index 6625421c..a7e83140 100644 --- a/gin.go +++ b/gin.go @@ -294,7 +294,7 @@ func (engine *Engine) handleHTTPRequest(context *Context) { return } else if httpMethod != "CONNECT" && path != "/" { - if tsr && engine.RedirectFixedPath { + if tsr && engine.RedirectTrailingSlash { redirectTrailingSlash(context) return }