{"action":"created","issue":{"url":"https://api.github.com/repos/kataras/iris/issues/552","repository_url":"https://api.github.com/repos/kataras/iris","labels_url":"https://api.github.com/repos/kataras/iris/issues/552/labels{/name}","comments_url":"https://api.github.com/repos/kataras/iris/issues/552/comments","events_url":"https://api.github.com/repos/kataras/iris/issues/552/events","html_url":"https://github.com/kataras/iris/issues/552","id":194146087,"number":552,"title":"Party example in the git book is missing ctx.Next()","user":{"login":"claudehohl","id":496245,"avatar_url":"https://avatars.githubusercontent.com/u/496245?v=3","gravatar_id":"","url":"https://api.github.com/users/claudehohl","html_url":"https://github.com/claudehohl","followers_url":"https://api.github.com/users/claudehohl/followers","following_url":"https://api.github.com/users/claudehohl/following{/other_user}","gists_url":"https://api.github.com/users/claudehohl/gists{/gist_id}","starred_url":"https://api.github.com/users/claudehohl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudehohl/subscriptions","organizations_url":"https://api.github.com/users/claudehohl/orgs","repos_url":"https://api.github.com/users/claudehohl/repos","events_url":"https://api.github.com/users/claudehohl/events{/privacy}","received_events_url":"https://api.github.com/users/claudehohl/received_events","type":"User","site_admin":false},"labels":[{"id":318872875,"url":"https://api.github.com/repos/kataras/iris/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-07T19:34:12Z","updated_at":"2016-12-08T09:11:19Z","closed_at":"2016-12-08T04:46:45Z","body":"- Version : **5.0.1**\r\n\r\n- Operating System: Debian 8.6\r\n\r\n- [x] I have read the [book](https://docs.iris-go.com), [examples](https://github.com/iris-contrib/examples), [contributing file](https://github.com/kataras/iris/blob/master/.github/CONTRIBUTING.md) and **I'm sure that this issue is not posted** & answered before.\r\n\r\nIn this example: https://docs.iris-go.com/party.html\r\n\r\nThe middleware is stuck, because the ctx.Next() is missing in the example. After adding it, everything works as expected.\r\n\r\nTried to make a PR, but it seems the GitBook is not like GitHub, no repo. So here is the diff:\r\n\r\n```diff\r\n@@ -3,7 +3,7 @@ package main\r\n import \"github.com/kataras/iris\"\r\n \r\n func main() {\r\n-       admin := iris.Party(\"/admin\", func(ctx *iris.Context) { ctx.Write(\"Middleware for all party's routes!\") })\r\n+       admin := iris.Party(\"/admin\", func(ctx *iris.Context) { ctx.Write(\"Middleware for all party's routes!\"); ctx.Next() })\r\n        {\r\n                // add a silly middleware\r\n                admin.UseFunc(func(c *iris.Context) {\r\n```\r\n\r\n--------------\r\n"},"comment":{"url":"https://api.github.com/repos/kataras/iris/issues/comments/265690436","html_url":"https://github.com/kataras/iris/issues/552#issuecomment-265690436","issue_url":"https://api.github.com/repos/kataras/iris/issues/552","id":265690436,"user":{"login":"claudehohl","id":496245,"avatar_url":"https://avatars.githubusercontent.com/u/496245?v=3","gravatar_id":"","url":"https://api.github.com/users/claudehohl","html_url":"https://github.com/claudehohl","followers_url":"https://api.github.com/users/claudehohl/followers","following_url":"https://api.github.com/users/claudehohl/following{/other_user}","gists_url":"https://api.github.com/users/claudehohl/gists{/gist_id}","starred_url":"https://api.github.com/users/claudehohl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudehohl/subscriptions","organizations_url":"https://api.github.com/users/claudehohl/orgs","repos_url":"https://api.github.com/users/claudehohl/repos","events_url":"https://api.github.com/users/claudehohl/events{/privacy}","received_events_url":"https://api.github.com/users/claudehohl/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T09:11:19Z","updated_at":"2016-12-08T09:11:19Z","body":"iris-contrib/gitbook - ah, I didn't know about that! Thanks for clearing up & for the fix."}}
{"actor":{"display_login":"claudehohl"}}