From 91af3789958eff7176e8c25c6531593cfd5239f2 Mon Sep 17 00:00:00 2001 From: youngblood <944168348@qq.com> Date: Sat, 28 Jul 2018 13:14:47 +0800 Subject: [PATCH] add RelativePath --- gin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gin.go b/gin.go index 35b6b5e2..bc12265a 100644 --- a/gin.go +++ b/gin.go @@ -377,7 +377,7 @@ func (engine *Engine) handleHTTPRequest(c *Context) { if engine.HandleMethodNotAllowed { for _, tree := range engine.trees { if tree.method != httpMethod { - 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