diff --git a/gin.go b/gin.go index f9324299..2d4fbf8d 100644 --- a/gin.go +++ b/gin.go @@ -586,7 +586,7 @@ func (engine *Engine) HandleContext(c *Context) { } func (engine *Engine) handleHTTPRequest(c *Context) { - httpMethod := c.Request.Method + httpMethod := strings.ToUpper(c.Request.Method) rPath := c.Request.URL.Path unescape := false if engine.UseRawPath && len(c.Request.URL.RawPath) > 0 {