mirror of
https://github.com/kataras/iris.git
synced 2025-02-09 02:34:55 +01:00
Update handler.go
Former-commit-id: f6bd29025c97d04b058584fecb8e0fee91021cb1
This commit is contained in:
parent
923d151190
commit
21a31afb55
|
@ -152,7 +152,7 @@ func (h *routerHandler) HandleRequest(ctx context.Context) {
|
||||||
path := ctx.Path()
|
path := ctx.Path()
|
||||||
if !ctx.Application().ConfigurationReadOnly().GetDisablePathCorrection() {
|
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,
|
// Remove trailing slash and client-permanent rule for redirection,
|
||||||
// if confgiuration allows that and path has an extra slash.
|
// if confgiuration allows that and path has an extra slash.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user