{"action":"created","issue":{"url":"https://api.github.com/repos/labstack/echo/issues/700","repository_url":"https://api.github.com/repos/labstack/echo","labels_url":"https://api.github.com/repos/labstack/echo/issues/700/labels{/name}","comments_url":"https://api.github.com/repos/labstack/echo/issues/700/comments","events_url":"https://api.github.com/repos/labstack/echo/issues/700/events","html_url":"https://github.com/labstack/echo/issues/700","id":186156318,"number":700,"title":"Group middleware functions prevent a 404 error","user":{"login":"mtpc","id":11539268,"avatar_url":"https://avatars.githubusercontent.com/u/11539268?v=3","gravatar_id":"","url":"https://api.github.com/users/mtpc","html_url":"https://github.com/mtpc","followers_url":"https://api.github.com/users/mtpc/followers","following_url":"https://api.github.com/users/mtpc/following{/other_user}","gists_url":"https://api.github.com/users/mtpc/gists{/gist_id}","starred_url":"https://api.github.com/users/mtpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtpc/subscriptions","organizations_url":"https://api.github.com/users/mtpc/orgs","repos_url":"https://api.github.com/users/mtpc/repos","events_url":"https://api.github.com/users/mtpc/events{/privacy}","received_events_url":"https://api.github.com/users/mtpc/received_events","type":"User","site_admin":false},"labels":[{"id":182096620,"url":"https://api.github.com/repos/labstack/echo/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"vishr","id":314036,"avatar_url":"https://avatars.githubusercontent.com/u/314036?v=3","gravatar_id":"","url":"https://api.github.com/users/vishr","html_url":"https://github.com/vishr","followers_url":"https://api.github.com/users/vishr/followers","following_url":"https://api.github.com/users/vishr/following{/other_user}","gists_url":"https://api.github.com/users/vishr/gists{/gist_id}","starred_url":"https://api.github.com/users/vishr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishr/subscriptions","organizations_url":"https://api.github.com/users/vishr/orgs","repos_url":"https://api.github.com/users/vishr/repos","events_url":"https://api.github.com/users/vishr/events{/privacy}","received_events_url":"https://api.github.com/users/vishr/received_events","type":"User","site_admin":false},"assignees":[{"login":"vishr","id":314036,"avatar_url":"https://avatars.githubusercontent.com/u/314036?v=3","gravatar_id":"","url":"https://api.github.com/users/vishr","html_url":"https://github.com/vishr","followers_url":"https://api.github.com/users/vishr/followers","following_url":"https://api.github.com/users/vishr/following{/other_user}","gists_url":"https://api.github.com/users/vishr/gists{/gist_id}","starred_url":"https://api.github.com/users/vishr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishr/subscriptions","organizations_url":"https://api.github.com/users/vishr/orgs","repos_url":"https://api.github.com/users/vishr/repos","events_url":"https://api.github.com/users/vishr/events{/privacy}","received_events_url":"https://api.github.com/users/vishr/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-10-30T19:18:16Z","updated_at":"2016-10-30T20:53:54Z","closed_at":"2016-10-30T20:32:14Z","body":"Using latest master (58166d599b8b4c595d9045bf1d71f7ff005b3485), group middleware functions don't trigger a 404 error  (and get called twice) when request location is equal to the group's base path and no handler exists for that path\r\n```go\r\nfunc main() {\r\n  e := echo.New()\r\n  test := e.Group(\"/\")\r\n  test.Use(func(next echo.HandlerFunc) echo.HandlerFunc {\r\n    return func(c echo.Context) error {\r\n      c.Response().Write([]byte(\"test\\n\"))\r\n      return next(c)\r\n    }\r\n  })\r\n  test.GET(\"test\", func(c echo.Context) error {\r\n   return c.String(200, \"Ok\")\r\n  })\r\n  e.Start(\":8080\")\r\n}\r\n```\r\n\r\n```bash\r\n> # should answer with a 404 error\r\n> # happens with an additional trailing slash too\r\n> curl localhost:8080\r\ntest\r\ntest\r\n> # works as expected\r\n> curl localhost:8080/absent\r\nNot Found\r\n> # works as expected\r\n> curl localhost:8080/test\r\ntest\r\nok\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/labstack/echo/issues/comments/257178332","html_url":"https://github.com/labstack/echo/issues/700#issuecomment-257178332","issue_url":"https://api.github.com/repos/labstack/echo/issues/700","id":257178332,"user":{"login":"mtpc","id":11539268,"avatar_url":"https://avatars.githubusercontent.com/u/11539268?v=3","gravatar_id":"","url":"https://api.github.com/users/mtpc","html_url":"https://github.com/mtpc","followers_url":"https://api.github.com/users/mtpc/followers","following_url":"https://api.github.com/users/mtpc/following{/other_user}","gists_url":"https://api.github.com/users/mtpc/gists{/gist_id}","starred_url":"https://api.github.com/users/mtpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtpc/subscriptions","organizations_url":"https://api.github.com/users/mtpc/orgs","repos_url":"https://api.github.com/users/mtpc/repos","events_url":"https://api.github.com/users/mtpc/events{/privacy}","received_events_url":"https://api.github.com/users/mtpc/received_events","type":"User","site_admin":false},"created_at":"2016-10-30T20:53:54Z","updated_at":"2016-10-30T20:53:54Z","body":"Works fine, thanks !"}}
{"actor":{"display_login":"mtpc"}}