mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
Update handler.go
Former-commit-id: f6bd29025c97d04b058584fecb8e0fee91021cb1
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user