Browse Source

Merge pull request #363 from error10/patch-1

RedirectTrailingSlash has no effect unless RedirectFixedPath is set
Manu Mtz.-Almeida 10 years ago
parent
commit
13b88673a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gin.go

+ 1 - 1
gin.go

@@ -294,7 +294,7 @@ func (engine *Engine) handleHTTPRequest(context *Context) {
 				return
 				return
 
 
 			} else if httpMethod != "CONNECT" && path != "/" {
 			} else if httpMethod != "CONNECT" && path != "/" {
-				if tsr && engine.RedirectFixedPath {
+				if tsr && engine.RedirectTrailingSlash {
 					redirectTrailingSlash(context)
 					redirectTrailingSlash(context)
 					return
 					return
 				}
 				}