mirror of
https://github.com/gin-gonic/gin.git
synced 2026-04-29 23:23:18 +08:00
fix: updated documentation
This commit is contained in:
parent
12ed1b1715
commit
18d33bd738
2
gin.go
2
gin.go
@ -101,6 +101,8 @@ type Engine struct {
|
|||||||
// For example if /foo/ is requested but a route only exists for /foo, the
|
// 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
|
// client is redirected to /foo with http status code 301 for GET requests
|
||||||
// and 307 for all other request methods.
|
// 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
|
RedirectTrailingSlash bool
|
||||||
|
|
||||||
// RedirectFixedPath if enabled, the router tries to fix the current request path, if no
|
// RedirectFixedPath if enabled, the router tries to fix the current request path, if no
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user