{"action":"opened","number":301,"pull_request":{"url":"https://api.github.com/repos/igrigorik/em-http-request/pulls/301","id":75803366,"html_url":"https://github.com/igrigorik/em-http-request/pull/301","diff_url":"https://github.com/igrigorik/em-http-request/pull/301.diff","patch_url":"https://github.com/igrigorik/em-http-request/pull/301.patch","issue_url":"https://api.github.com/repos/igrigorik/em-http-request/issues/301","number":301,"state":"open","locked":false,"title":"Prevent data corruption when decoding gzip stream, fixes #284","user":{"login":"boxofrad","id":580803,"avatar_url":"https://avatars.githubusercontent.com/u/580803?v=3","gravatar_id":"","url":"https://api.github.com/users/boxofrad","html_url":"https://github.com/boxofrad","followers_url":"https://api.github.com/users/boxofrad/followers","following_url":"https://api.github.com/users/boxofrad/following{/other_user}","gists_url":"https://api.github.com/users/boxofrad/gists{/gist_id}","starred_url":"https://api.github.com/users/boxofrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boxofrad/subscriptions","organizations_url":"https://api.github.com/users/boxofrad/orgs","repos_url":"https://api.github.com/users/boxofrad/repos","events_url":"https://api.github.com/users/boxofrad/events{/privacy}","received_events_url":"https://api.github.com/users/boxofrad/received_events","type":"User","site_admin":false},"body":"Hi! 👋 \r\n\r\nThis fixes an issue where a gzip stream chunked into smaller pieces would result in a buffer overrun when decoding the headers (causing the problem described in #284).\r\n\r\nPreviously the position where the headers end in `compressed` was determined by the delta of `@pos` before and after reading the headers. This didn't take into account the fact that `@data` may already contain data, but not enough to have advanced `@pos` on previous iterations.\r\n\r\nThanks for your excellent work on maintaining this project ❤️ ","created_at":"2016-06-30T11:31:50Z","updated_at":"2016-06-30T11:31:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/igrigorik/em-http-request/pulls/301/commits","review_comments_url":"https://api.github.com/repos/igrigorik/em-http-request/pulls/301/comments","review_comment_url":"https://api.github.com/repos/igrigorik/em-http-request/pulls/comments{/number}","comments_url":"https://api.github.com/repos/igrigorik/em-http-request/issues/301/comments","statuses_url":"https://api.github.com/repos/igrigorik/em-http-request/statuses/ad8b6a0696a285506b40b838cf4c7a1d10e3b1fc","head":{"label":"geckoboard:bugfix-284","ref":"bugfix-284","sha":"ad8b6a0696a285506b40b838cf4c7a1d10e3b1fc","user":{"login":"geckoboard","id":1148373,"avatar_url":"https://avatars.githubusercontent.com/u/1148373?v=3","gravatar_id":"","url":"https://api.github.com/users/geckoboard","html_url":"https://github.com/geckoboard","followers_url":"https://api.github.com/users/geckoboard/followers","following_url":"https://api.github.com/users/geckoboard/following{/other_user}","gists_url":"https://api.github.com/users/geckoboard/gists{/gist_id}","starred_url":"https://api.github.com/users/geckoboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geckoboard/subscriptions","organizations_url":"https://api.github.com/users/geckoboard/orgs","repos_url":"https://api.github.com/users/geckoboard/repos","events_url":"https://api.github.com/users/geckoboard/events{/privacy}","received_events_url":"https://api.github.com/users/geckoboard/received_events","type":"Organization","site_admin":false},"repo":{"id":62305463,"name":"em-http-request","full_name":"geckoboard/em-http-request","owner":{"login":"geckoboard","id":1148373,"avatar_url":"https://avatars.githubusercontent.com/u/1148373?v=3","gravatar_id":"","url":"https://api.github.com/users/geckoboard","html_url":"https://github.com/geckoboard","followers_url":"https://api.github.com/users/geckoboard/followers","following_url":"https://api.github.com/users/geckoboard/following{/other_user}","gists_url":"https://api.github.com/users/geckoboard/gists{/gist_id}","starred_url":"https://api.github.com/users/geckoboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geckoboard/subscriptions","organizations_url":"https://api.github.com/users/geckoboard/orgs","repos_url":"https://api.github.com/users/geckoboard/repos","events_url":"https://api.github.com/users/geckoboard/events{/privacy}","received_events_url":"https://api.github.com/users/geckoboard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/geckoboard/em-http-request","description":"Asynchronous HTTP Client (EventMachine + Ruby)","fork":true,"url":"https://api.github.com/repos/geckoboard/em-http-request","forks_url":"https://api.github.com/repos/geckoboard/em-http-request/forks","keys_url":"https://api.github.com/repos/geckoboard/em-http-request/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geckoboard/em-http-request/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geckoboard/em-http-request/teams","hooks_url":"https://api.github.com/repos/geckoboard/em-http-request/hooks","issue_events_url":"https://api.github.com/repos/geckoboard/em-http-request/issues/events{/number}","events_url":"https://api.github.com/repos/geckoboard/em-http-request/events","assignees_url":"https://api.github.com/repos/geckoboard/em-http-request/assignees{/user}","branches_url":"https://api.github.com/repos/geckoboard/em-http-request/branches{/branch}","tags_url":"https://api.github.com/repos/geckoboard/em-http-request/tags","blobs_url":"https://api.github.com/repos/geckoboard/em-http-request/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geckoboard/em-http-request/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geckoboard/em-http-request/git/refs{/sha}","trees_url":"https://api.github.com/repos/geckoboard/em-http-request/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geckoboard/em-http-request/statuses/{sha}","languages_url":"https://api.github.com/repos/geckoboard/em-http-request/languages","stargazers_url":"https://api.github.com/repos/geckoboard/em-http-request/stargazers","contributors_url":"https://api.github.com/repos/geckoboard/em-http-request/contributors","subscribers_url":"https://api.github.com/repos/geckoboard/em-http-request/subscribers","subscription_url":"https://api.github.com/repos/geckoboard/em-http-request/subscription","commits_url":"https://api.github.com/repos/geckoboard/em-http-request/commits{/sha}","git_commits_url":"https://api.github.com/repos/geckoboard/em-http-request/git/commits{/sha}","comments_url":"https://api.github.com/repos/geckoboard/em-http-request/comments{/number}","issue_comment_url":"https://api.github.com/repos/geckoboard/em-http-request/issues/comments{/number}","contents_url":"https://api.github.com/repos/geckoboard/em-http-request/contents/{+path}","compare_url":"https://api.github.com/repos/geckoboard/em-http-request/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geckoboard/em-http-request/merges","archive_url":"https://api.github.com/repos/geckoboard/em-http-request/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geckoboard/em-http-request/downloads","issues_url":"https://api.github.com/repos/geckoboard/em-http-request/issues{/number}","pulls_url":"https://api.github.com/repos/geckoboard/em-http-request/pulls{/number}","milestones_url":"https://api.github.com/repos/geckoboard/em-http-request/milestones{/number}","notifications_url":"https://api.github.com/repos/geckoboard/em-http-request/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geckoboard/em-http-request/labels{/name}","releases_url":"https://api.github.com/repos/geckoboard/em-http-request/releases{/id}","deployments_url":"https://api.github.com/repos/geckoboard/em-http-request/deployments","created_at":"2016-06-30T11:29:34Z","updated_at":"2016-06-30T11:29:35Z","pushed_at":"2016-06-30T11:30:22Z","git_url":"git://github.com/geckoboard/em-http-request.git","ssh_url":"git@github.com:geckoboard/em-http-request.git","clone_url":"https://github.com/geckoboard/em-http-request.git","svn_url":"https://github.com/geckoboard/em-http-request","homepage":"","size":1218,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"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":"igrigorik:master","ref":"master","sha":"901b5461430216e2b5245fed9a754316479872bc","user":{"login":"igrigorik","id":10652,"avatar_url":"https://avatars.githubusercontent.com/u/10652?v=3","gravatar_id":"","url":"https://api.github.com/users/igrigorik","html_url":"https://github.com/igrigorik","followers_url":"https://api.github.com/users/igrigorik/followers","following_url":"https://api.github.com/users/igrigorik/following{/other_user}","gists_url":"https://api.github.com/users/igrigorik/gists{/gist_id}","starred_url":"https://api.github.com/users/igrigorik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igrigorik/subscriptions","organizations_url":"https://api.github.com/users/igrigorik/orgs","repos_url":"https://api.github.com/users/igrigorik/repos","events_url":"https://api.github.com/users/igrigorik/events{/privacy}","received_events_url":"https://api.github.com/users/igrigorik/received_events","type":"User","site_admin":false},"repo":{"id":45103,"name":"em-http-request","full_name":"igrigorik/em-http-request","owner":{"login":"igrigorik","id":10652,"avatar_url":"https://avatars.githubusercontent.com/u/10652?v=3","gravatar_id":"","url":"https://api.github.com/users/igrigorik","html_url":"https://github.com/igrigorik","followers_url":"https://api.github.com/users/igrigorik/followers","following_url":"https://api.github.com/users/igrigorik/following{/other_user}","gists_url":"https://api.github.com/users/igrigorik/gists{/gist_id}","starred_url":"https://api.github.com/users/igrigorik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igrigorik/subscriptions","organizations_url":"https://api.github.com/users/igrigorik/orgs","repos_url":"https://api.github.com/users/igrigorik/repos","events_url":"https://api.github.com/users/igrigorik/events{/privacy}","received_events_url":"https://api.github.com/users/igrigorik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/igrigorik/em-http-request","description":"Asynchronous HTTP Client (EventMachine + Ruby)","fork":false,"url":"https://api.github.com/repos/igrigorik/em-http-request","forks_url":"https://api.github.com/repos/igrigorik/em-http-request/forks","keys_url":"https://api.github.com/repos/igrigorik/em-http-request/keys{/key_id}","collaborators_url":"https://api.github.com/repos/igrigorik/em-http-request/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/igrigorik/em-http-request/teams","hooks_url":"https://api.github.com/repos/igrigorik/em-http-request/hooks","issue_events_url":"https://api.github.com/repos/igrigorik/em-http-request/issues/events{/number}","events_url":"https://api.github.com/repos/igrigorik/em-http-request/events","assignees_url":"https://api.github.com/repos/igrigorik/em-http-request/assignees{/user}","branches_url":"https://api.github.com/repos/igrigorik/em-http-request/branches{/branch}","tags_url":"https://api.github.com/repos/igrigorik/em-http-request/tags","blobs_url":"https://api.github.com/repos/igrigorik/em-http-request/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/igrigorik/em-http-request/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/igrigorik/em-http-request/git/refs{/sha}","trees_url":"https://api.github.com/repos/igrigorik/em-http-request/git/trees{/sha}","statuses_url":"https://api.github.com/repos/igrigorik/em-http-request/statuses/{sha}","languages_url":"https://api.github.com/repos/igrigorik/em-http-request/languages","stargazers_url":"https://api.github.com/repos/igrigorik/em-http-request/stargazers","contributors_url":"https://api.github.com/repos/igrigorik/em-http-request/contributors","subscribers_url":"https://api.github.com/repos/igrigorik/em-http-request/subscribers","subscription_url":"https://api.github.com/repos/igrigorik/em-http-request/subscription","commits_url":"https://api.github.com/repos/igrigorik/em-http-request/commits{/sha}","git_commits_url":"https://api.github.com/repos/igrigorik/em-http-request/git/commits{/sha}","comments_url":"https://api.github.com/repos/igrigorik/em-http-request/comments{/number}","issue_comment_url":"https://api.github.com/repos/igrigorik/em-http-request/issues/comments{/number}","contents_url":"https://api.github.com/repos/igrigorik/em-http-request/contents/{+path}","compare_url":"https://api.github.com/repos/igrigorik/em-http-request/compare/{base}...{head}","merges_url":"https://api.github.com/repos/igrigorik/em-http-request/merges","archive_url":"https://api.github.com/repos/igrigorik/em-http-request/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/igrigorik/em-http-request/downloads","issues_url":"https://api.github.com/repos/igrigorik/em-http-request/issues{/number}","pulls_url":"https://api.github.com/repos/igrigorik/em-http-request/pulls{/number}","milestones_url":"https://api.github.com/repos/igrigorik/em-http-request/milestones{/number}","notifications_url":"https://api.github.com/repos/igrigorik/em-http-request/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/igrigorik/em-http-request/labels{/name}","releases_url":"https://api.github.com/repos/igrigorik/em-http-request/releases{/id}","deployments_url":"https://api.github.com/repos/igrigorik/em-http-request/deployments","created_at":"2008-08-22T20:53:40Z","updated_at":"2016-06-29T06:50:26Z","pushed_at":"2016-06-30T11:31:50Z","git_url":"git://github.com/igrigorik/em-http-request.git","ssh_url":"git@github.com:igrigorik/em-http-request.git","clone_url":"https://github.com/igrigorik/em-http-request.git","svn_url":"https://github.com/igrigorik/em-http-request","homepage":"","size":1218,"stargazers_count":1086,"watchers_count":1086,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":200,"mirror_url":null,"open_issues_count":3,"forks":200,"open_issues":3,"watchers":1086,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/igrigorik/em-http-request/pulls/301"},"html":{"href":"https://github.com/igrigorik/em-http-request/pull/301"},"issue":{"href":"https://api.github.com/repos/igrigorik/em-http-request/issues/301"},"comments":{"href":"https://api.github.com/repos/igrigorik/em-http-request/issues/301/comments"},"review_comments":{"href":"https://api.github.com/repos/igrigorik/em-http-request/pulls/301/comments"},"review_comment":{"href":"https://api.github.com/repos/igrigorik/em-http-request/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/igrigorik/em-http-request/pulls/301/commits"},"statuses":{"href":"https://api.github.com/repos/igrigorik/em-http-request/statuses/ad8b6a0696a285506b40b838cf4c7a1d10e3b1fc"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":24,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"boxofrad"}}