From 70537925b4120baf0113712de01d169e09ac4891 Mon Sep 17 00:00:00 2001 From: youngblood <944168348@qq.com> Date: Wed, 15 Aug 2018 14:44:17 +0800 Subject: [PATCH] gin.go --- gin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gin.go b/gin.go index 65aa7b72..de08ecd5 100644 --- a/gin.go +++ b/gin.go @@ -380,7 +380,7 @@ func (engine *Engine) handleHTTPRequest(c *Context) { if tree.method == httpMethod { continue } - if handlers, _, _ := tree.root.getValue(path, nil, unescape); handlers != nil { + if handlers, _, _, _ := tree.root.getValue(path, nil, unescape); handlers != nil { c.handlers = engine.allNoMethod serveError(c, http.StatusMethodNotAllowed, default405Body) return