{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/kleiinnn/token-session/pulls/2","id":34284294,"html_url":"https://github.com/kleiinnn/token-session/pull/2","diff_url":"https://github.com/kleiinnn/token-session/pull/2.diff","patch_url":"https://github.com/kleiinnn/token-session/pull/2.patch","issue_url":"https://api.github.com/repos/kleiinnn/token-session/issues/2","number":2,"state":"closed","locked":false,"title":"Avoided cycling","user":{"login":"olysyuk","id":1804266,"avatar_url":"https://avatars.githubusercontent.com/u/1804266?v=3","gravatar_id":"","url":"https://api.github.com/users/olysyuk","html_url":"https://github.com/olysyuk","followers_url":"https://api.github.com/users/olysyuk/followers","following_url":"https://api.github.com/users/olysyuk/following{/other_user}","gists_url":"https://api.github.com/users/olysyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/olysyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olysyuk/subscriptions","organizations_url":"https://api.github.com/users/olysyuk/orgs","repos_url":"https://api.github.com/users/olysyuk/repos","events_url":"https://api.github.com/users/olysyuk/events{/privacy}","received_events_url":"https://api.github.com/users/olysyuk/received_events","type":"User","site_admin":false},"body":"When res.end was called, updated version was used and it was calling itself again and again. \r\n\r\nEasy way to check, put  console.log on session save and observe what node server.js outputs","created_at":"2015-04-28T16:18:45Z","updated_at":"2015-04-30T22:16:42Z","closed_at":"2015-04-30T22:16:42Z","merged_at":"2015-04-30T22:16:42Z","merge_commit_sha":"4c74ec53e01bcf48fea5a53e08c072996bdf85a0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kleiinnn/token-session/pulls/2/commits","review_comments_url":"https://api.github.com/repos/kleiinnn/token-session/pulls/2/comments","review_comment_url":"https://api.github.com/repos/kleiinnn/token-session/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kleiinnn/token-session/issues/2/comments","statuses_url":"https://api.github.com/repos/kleiinnn/token-session/statuses/05054072a955b3a7fb436e37b5bda0ace8159bc1","head":{"label":"olysyuk:patch-1","ref":"patch-1","sha":"05054072a955b3a7fb436e37b5bda0ace8159bc1","user":{"login":"olysyuk","id":1804266,"avatar_url":"https://avatars.githubusercontent.com/u/1804266?v=3","gravatar_id":"","url":"https://api.github.com/users/olysyuk","html_url":"https://github.com/olysyuk","followers_url":"https://api.github.com/users/olysyuk/followers","following_url":"https://api.github.com/users/olysyuk/following{/other_user}","gists_url":"https://api.github.com/users/olysyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/olysyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olysyuk/subscriptions","organizations_url":"https://api.github.com/users/olysyuk/orgs","repos_url":"https://api.github.com/users/olysyuk/repos","events_url":"https://api.github.com/users/olysyuk/events{/privacy}","received_events_url":"https://api.github.com/users/olysyuk/received_events","type":"User","site_admin":false},"repo":{"id":34741657,"name":"token-session","full_name":"olysyuk/token-session","owner":{"login":"olysyuk","id":1804266,"avatar_url":"https://avatars.githubusercontent.com/u/1804266?v=3","gravatar_id":"","url":"https://api.github.com/users/olysyuk","html_url":"https://github.com/olysyuk","followers_url":"https://api.github.com/users/olysyuk/followers","following_url":"https://api.github.com/users/olysyuk/following{/other_user}","gists_url":"https://api.github.com/users/olysyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/olysyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olysyuk/subscriptions","organizations_url":"https://api.github.com/users/olysyuk/orgs","repos_url":"https://api.github.com/users/olysyuk/repos","events_url":"https://api.github.com/users/olysyuk/events{/privacy}","received_events_url":"https://api.github.com/users/olysyuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olysyuk/token-session","description":"Simple token-based sessions","fork":true,"url":"https://api.github.com/repos/olysyuk/token-session","forks_url":"https://api.github.com/repos/olysyuk/token-session/forks","keys_url":"https://api.github.com/repos/olysyuk/token-session/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olysyuk/token-session/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olysyuk/token-session/teams","hooks_url":"https://api.github.com/repos/olysyuk/token-session/hooks","issue_events_url":"https://api.github.com/repos/olysyuk/token-session/issues/events{/number}","events_url":"https://api.github.com/repos/olysyuk/token-session/events","assignees_url":"https://api.github.com/repos/olysyuk/token-session/assignees{/user}","branches_url":"https://api.github.com/repos/olysyuk/token-session/branches{/branch}","tags_url":"https://api.github.com/repos/olysyuk/token-session/tags","blobs_url":"https://api.github.com/repos/olysyuk/token-session/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olysyuk/token-session/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olysyuk/token-session/git/refs{/sha}","trees_url":"https://api.github.com/repos/olysyuk/token-session/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olysyuk/token-session/statuses/{sha}","languages_url":"https://api.github.com/repos/olysyuk/token-session/languages","stargazers_url":"https://api.github.com/repos/olysyuk/token-session/stargazers","contributors_url":"https://api.github.com/repos/olysyuk/token-session/contributors","subscribers_url":"https://api.github.com/repos/olysyuk/token-session/subscribers","subscription_url":"https://api.github.com/repos/olysyuk/token-session/subscription","commits_url":"https://api.github.com/repos/olysyuk/token-session/commits{/sha}","git_commits_url":"https://api.github.com/repos/olysyuk/token-session/git/commits{/sha}","comments_url":"https://api.github.com/repos/olysyuk/token-session/comments{/number}","issue_comment_url":"https://api.github.com/repos/olysyuk/token-session/issues/comments{/number}","contents_url":"https://api.github.com/repos/olysyuk/token-session/contents/{+path}","compare_url":"https://api.github.com/repos/olysyuk/token-session/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olysyuk/token-session/merges","archive_url":"https://api.github.com/repos/olysyuk/token-session/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olysyuk/token-session/downloads","issues_url":"https://api.github.com/repos/olysyuk/token-session/issues{/number}","pulls_url":"https://api.github.com/repos/olysyuk/token-session/pulls{/number}","milestones_url":"https://api.github.com/repos/olysyuk/token-session/milestones{/number}","notifications_url":"https://api.github.com/repos/olysyuk/token-session/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olysyuk/token-session/labels{/name}","releases_url":"https://api.github.com/repos/olysyuk/token-session/releases{/id}","created_at":"2015-04-28T16:17:00Z","updated_at":"2015-04-28T16:17:01Z","pushed_at":"2015-04-28T16:18:41Z","git_url":"git://github.com/olysyuk/token-session.git","ssh_url":"git@github.com:olysyuk/token-session.git","clone_url":"https://github.com/olysyuk/token-session.git","svn_url":"https://github.com/olysyuk/token-session","homepage":null,"size":127,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kleiinnn:master","ref":"master","sha":"f51faa0f408fdbdd1ecbf3b30cc7cc5b2c7cd77d","user":{"login":"kleiinnn","id":3154460,"avatar_url":"https://avatars.githubusercontent.com/u/3154460?v=3","gravatar_id":"","url":"https://api.github.com/users/kleiinnn","html_url":"https://github.com/kleiinnn","followers_url":"https://api.github.com/users/kleiinnn/followers","following_url":"https://api.github.com/users/kleiinnn/following{/other_user}","gists_url":"https://api.github.com/users/kleiinnn/gists{/gist_id}","starred_url":"https://api.github.com/users/kleiinnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kleiinnn/subscriptions","organizations_url":"https://api.github.com/users/kleiinnn/orgs","repos_url":"https://api.github.com/users/kleiinnn/repos","events_url":"https://api.github.com/users/kleiinnn/events{/privacy}","received_events_url":"https://api.github.com/users/kleiinnn/received_events","type":"User","site_admin":false},"repo":{"id":18079066,"name":"token-session","full_name":"kleiinnn/token-session","owner":{"login":"kleiinnn","id":3154460,"avatar_url":"https://avatars.githubusercontent.com/u/3154460?v=3","gravatar_id":"","url":"https://api.github.com/users/kleiinnn","html_url":"https://github.com/kleiinnn","followers_url":"https://api.github.com/users/kleiinnn/followers","following_url":"https://api.github.com/users/kleiinnn/following{/other_user}","gists_url":"https://api.github.com/users/kleiinnn/gists{/gist_id}","starred_url":"https://api.github.com/users/kleiinnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kleiinnn/subscriptions","organizations_url":"https://api.github.com/users/kleiinnn/orgs","repos_url":"https://api.github.com/users/kleiinnn/repos","events_url":"https://api.github.com/users/kleiinnn/events{/privacy}","received_events_url":"https://api.github.com/users/kleiinnn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kleiinnn/token-session","description":"Simple token-based sessions","fork":false,"url":"https://api.github.com/repos/kleiinnn/token-session","forks_url":"https://api.github.com/repos/kleiinnn/token-session/forks","keys_url":"https://api.github.com/repos/kleiinnn/token-session/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kleiinnn/token-session/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kleiinnn/token-session/teams","hooks_url":"https://api.github.com/repos/kleiinnn/token-session/hooks","issue_events_url":"https://api.github.com/repos/kleiinnn/token-session/issues/events{/number}","events_url":"https://api.github.com/repos/kleiinnn/token-session/events","assignees_url":"https://api.github.com/repos/kleiinnn/token-session/assignees{/user}","branches_url":"https://api.github.com/repos/kleiinnn/token-session/branches{/branch}","tags_url":"https://api.github.com/repos/kleiinnn/token-session/tags","blobs_url":"https://api.github.com/repos/kleiinnn/token-session/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kleiinnn/token-session/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kleiinnn/token-session/git/refs{/sha}","trees_url":"https://api.github.com/repos/kleiinnn/token-session/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kleiinnn/token-session/statuses/{sha}","languages_url":"https://api.github.com/repos/kleiinnn/token-session/languages","stargazers_url":"https://api.github.com/repos/kleiinnn/token-session/stargazers","contributors_url":"https://api.github.com/repos/kleiinnn/token-session/contributors","subscribers_url":"https://api.github.com/repos/kleiinnn/token-session/subscribers","subscription_url":"https://api.github.com/repos/kleiinnn/token-session/subscription","commits_url":"https://api.github.com/repos/kleiinnn/token-session/commits{/sha}","git_commits_url":"https://api.github.com/repos/kleiinnn/token-session/git/commits{/sha}","comments_url":"https://api.github.com/repos/kleiinnn/token-session/comments{/number}","issue_comment_url":"https://api.github.com/repos/kleiinnn/token-session/issues/comments{/number}","contents_url":"https://api.github.com/repos/kleiinnn/token-session/contents/{+path}","compare_url":"https://api.github.com/repos/kleiinnn/token-session/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kleiinnn/token-session/merges","archive_url":"https://api.github.com/repos/kleiinnn/token-session/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kleiinnn/token-session/downloads","issues_url":"https://api.github.com/repos/kleiinnn/token-session/issues{/number}","pulls_url":"https://api.github.com/repos/kleiinnn/token-session/pulls{/number}","milestones_url":"https://api.github.com/repos/kleiinnn/token-session/milestones{/number}","notifications_url":"https://api.github.com/repos/kleiinnn/token-session/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kleiinnn/token-session/labels{/name}","releases_url":"https://api.github.com/repos/kleiinnn/token-session/releases{/id}","created_at":"2014-03-24T21:14:08Z","updated_at":"2015-04-30T22:16:42Z","pushed_at":"2015-04-30T22:16:42Z","git_url":"git://github.com/kleiinnn/token-session.git","ssh_url":"git@github.com:kleiinnn/token-session.git","clone_url":"https://github.com/kleiinnn/token-session.git","svn_url":"https://github.com/kleiinnn/token-session","homepage":null,"size":249,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kleiinnn/token-session/pulls/2"},"html":{"href":"https://github.com/kleiinnn/token-session/pull/2"},"issue":{"href":"https://api.github.com/repos/kleiinnn/token-session/issues/2"},"comments":{"href":"https://api.github.com/repos/kleiinnn/token-session/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/kleiinnn/token-session/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/kleiinnn/token-session/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kleiinnn/token-session/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/kleiinnn/token-session/statuses/05054072a955b3a7fb436e37b5bda0ace8159bc1"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"kleiinnn","id":3154460,"avatar_url":"https://avatars.githubusercontent.com/u/3154460?v=3","gravatar_id":"","url":"https://api.github.com/users/kleiinnn","html_url":"https://github.com/kleiinnn","followers_url":"https://api.github.com/users/kleiinnn/followers","following_url":"https://api.github.com/users/kleiinnn/following{/other_user}","gists_url":"https://api.github.com/users/kleiinnn/gists{/gist_id}","starred_url":"https://api.github.com/users/kleiinnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kleiinnn/subscriptions","organizations_url":"https://api.github.com/users/kleiinnn/orgs","repos_url":"https://api.github.com/users/kleiinnn/repos","events_url":"https://api.github.com/users/kleiinnn/events{/privacy}","received_events_url":"https://api.github.com/users/kleiinnn/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}