Merge pull request #363 from error10/patch-1

RedirectTrailingSlash has no effect unless RedirectFixedPath is set
This commit is contained in:
Manu Mtz.-Almeida 2015-07-04 13:37:42 +02:00
commit 13b88673a2
1 changed files with 1 additions and 1 deletions

2
gin.go
View File

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