{"action":"created","issue":{"url":"https://api.github.com/repos/inaka/EventSource/issues/66","repository_url":"https://api.github.com/repos/inaka/EventSource","labels_url":"https://api.github.com/repos/inaka/EventSource/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/inaka/EventSource/issues/66/comments","events_url":"https://api.github.com/repos/inaka/EventSource/issues/66/events","html_url":"https://github.com/inaka/EventSource/pull/66","id":180059605,"number":66,"title":"Added possibility to close the connection on other http response codes","user":{"login":"aenglund","id":341797,"avatar_url":"https://avatars0.githubusercontent.com/u/341797?v=4","gravatar_id":"","url":"https://api.github.com/users/aenglund","html_url":"https://github.com/aenglund","followers_url":"https://api.github.com/users/aenglund/followers","following_url":"https://api.github.com/users/aenglund/following{/other_user}","gists_url":"https://api.github.com/users/aenglund/gists{/gist_id}","starred_url":"https://api.github.com/users/aenglund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aenglund/subscriptions","organizations_url":"https://api.github.com/users/aenglund/orgs","repos_url":"https://api.github.com/users/aenglund/repos","events_url":"https://api.github.com/users/aenglund/events{/privacy}","received_events_url":"https://api.github.com/users/aenglund/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-29T14:08:39Z","updated_at":"2018-04-28T21:03:06Z","closed_at":"2018-04-28T21:03:06Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/inaka/EventSource/pulls/66","html_url":"https://github.com/inaka/EventSource/pull/66","diff_url":"https://github.com/inaka/EventSource/pull/66.diff","patch_url":"https://github.com/inaka/EventSource/pull/66.patch"},"body":"I have a use case where I need to close the connection in case of 401 Unauthorized. However, I couldn't find a good way to solve that with the current solution.\nMaybe this could be a good way to add that functionality?\n"},"comment":{"url":"https://api.github.com/repos/inaka/EventSource/issues/comments/385205250","html_url":"https://github.com/inaka/EventSource/pull/66#issuecomment-385205250","issue_url":"https://api.github.com/repos/inaka/EventSource/issues/66","id":385205250,"user":{"login":"andresinaka","id":1957233,"avatar_url":"https://avatars0.githubusercontent.com/u/1957233?v=4","gravatar_id":"","url":"https://api.github.com/users/andresinaka","html_url":"https://github.com/andresinaka","followers_url":"https://api.github.com/users/andresinaka/followers","following_url":"https://api.github.com/users/andresinaka/following{/other_user}","gists_url":"https://api.github.com/users/andresinaka/gists{/gist_id}","starred_url":"https://api.github.com/users/andresinaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresinaka/subscriptions","organizations_url":"https://api.github.com/users/andresinaka/orgs","repos_url":"https://api.github.com/users/andresinaka/repos","events_url":"https://api.github.com/users/andresinaka/events{/privacy}","received_events_url":"https://api.github.com/users/andresinaka/received_events","type":"User","site_admin":false},"created_at":"2018-04-28T21:03:06Z","updated_at":"2018-04-28T21:03:06Z","author_association":"CONTRIBUTOR","body":"fixed in last PR. All http codes > 400 avoids retrying and closes connection"}}
{"actor":{"display_login":"andresinaka"}}