delete else keyword (#948)
This commit is contained in:
4
gin.go
4
gin.go
@ -326,8 +326,8 @@ func (engine *Engine) handleHTTPRequest(context *Context) {
|
||||
context.Next()
|
||||
context.writermem.WriteHeaderNow()
|
||||
return
|
||||
|
||||
} else if httpMethod != "CONNECT" && path != "/" {
|
||||
}
|
||||
if httpMethod != "CONNECT" && path != "/" {
|
||||
if tsr && engine.RedirectTrailingSlash {
|
||||
redirectTrailingSlash(context)
|
||||
return
|
||||
|
Reference in New Issue
Block a user