{"action":"created","issue":{"url":"https://api.github.com/repos/olalonde/follow-redirects/issues/31","repository_url":"https://api.github.com/repos/olalonde/follow-redirects","labels_url":"https://api.github.com/repos/olalonde/follow-redirects/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/olalonde/follow-redirects/issues/31/comments","events_url":"https://api.github.com/repos/olalonde/follow-redirects/issues/31/events","html_url":"https://github.com/olalonde/follow-redirects/pull/31","id":145531513,"number":31,"title":"Restore the response event.","user":{"login":"RubenVerborgh","id":675313,"avatar_url":"https://avatars.githubusercontent.com/u/675313?v=3","gravatar_id":"","url":"https://api.github.com/users/RubenVerborgh","html_url":"https://github.com/RubenVerborgh","followers_url":"https://api.github.com/users/RubenVerborgh/followers","following_url":"https://api.github.com/users/RubenVerborgh/following{/other_user}","gists_url":"https://api.github.com/users/RubenVerborgh/gists{/gist_id}","starred_url":"https://api.github.com/users/RubenVerborgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubenVerborgh/subscriptions","organizations_url":"https://api.github.com/users/RubenVerborgh/orgs","repos_url":"https://api.github.com/users/RubenVerborgh/repos","events_url":"https://api.github.com/users/RubenVerborgh/events{/privacy}","received_events_url":"https://api.github.com/users/RubenVerborgh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-03T19:17:01Z","updated_at":"2016-04-03T19:35:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/olalonde/follow-redirects/pulls/31","html_url":"https://github.com/olalonde/follow-redirects/pull/31","diff_url":"https://github.com/olalonde/follow-redirects/pull/31.diff","patch_url":"https://github.com/olalonde/follow-redirects/pull/31.patch"},"body":"In #30, I remarked that the `response` event—and hence, the passed callback—do not behave as in the original Node.js API.\r\n\r\nThis pull request fixes that, by returning a proxied request rather than the original request. They proxy and the request are identical, except for event handling: the proxy only fires the `response` event when the final redirected response arrives, whereas the (now internal) `response` event of the request fires as soon as the first (non-redirected) response arrives."},"comment":{"url":"https://api.github.com/repos/olalonde/follow-redirects/issues/comments/205040633","html_url":"https://github.com/olalonde/follow-redirects/pull/31#issuecomment-205040633","issue_url":"https://api.github.com/repos/olalonde/follow-redirects/issues/31","id":205040633,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T19:35:38Z","updated_at":"2016-04-03T19:35:38Z","body":"\n[![Coverage Status](https://coveralls.io/builds/5645834/badge)](https://coveralls.io/builds/5645834)\n\nCoverage remained the same at 100.0% when pulling **413089f5102eb273a3c9d3c81a152e80e85822ac on RubenVerborgh:fix-response-event** into **0243ba264bc4db4e49d5fc6d1e70e14af72857fa on olalonde:master**.\n"}}