From 18d33bd73847cfc4362d6ec6c5e2cf88a15b89d0 Mon Sep 17 00:00:00 2001 From: Atennop1 Date: Thu, 15 Jan 2026 16:40:45 +0300 Subject: [PATCH] fix: updated documentation --- gin.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gin.go b/gin.go index bacd8bfa..98eb319c 100644 --- a/gin.go +++ b/gin.go @@ -101,6 +101,8 @@ type Engine struct { // For example if /foo/ is requested but a route only exists for /foo, the // client is redirected to /foo with http status code 301 for GET requests // and 307 for all other request methods. + // If this field is false then /foo and /foo/ are assumed the same and no redirection will happen, + // both endpoints will use the same handlers. RedirectTrailingSlash bool // RedirectFixedPath if enabled, the router tries to fix the current request path, if no