{"action":"closed","number":1739,"pull_request":{"url":"https://api.github.com/repos/slimphp/Slim/pulls/1739","id":56388257,"html_url":"https://github.com/slimphp/Slim/pull/1739","diff_url":"https://github.com/slimphp/Slim/pull/1739.diff","patch_url":"https://github.com/slimphp/Slim/pull/1739.patch","issue_url":"https://api.github.com/repos/slimphp/Slim/issues/1739","number":1739,"state":"closed","locked":false,"title":"Ensure that responses with an indeterminate-length body have their content sent","user":{"login":"jj101k","id":444556,"avatar_url":"https://avatars.githubusercontent.com/u/444556?v=3","gravatar_id":"","url":"https://api.github.com/users/jj101k","html_url":"https://github.com/jj101k","followers_url":"https://api.github.com/users/jj101k/followers","following_url":"https://api.github.com/users/jj101k/following{/other_user}","gists_url":"https://api.github.com/users/jj101k/gists{/gist_id}","starred_url":"https://api.github.com/users/jj101k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jj101k/subscriptions","organizations_url":"https://api.github.com/users/jj101k/orgs","repos_url":"https://api.github.com/users/jj101k/repos","events_url":"https://api.github.com/users/jj101k/events{/privacy}","received_events_url":"https://api.github.com/users/jj101k/received_events","type":"User","site_admin":false},"body":"In cases where the body getSize() returns null and no length has been provided via header, no content will be sent due to ceil(null / $chunkSize) == 0. This affects custom body objects as would be used to stream data in cases where waiting for the body to be complete would be prohibitively expensive and no size can be determined in advance, for example the results of \"tail -0f /var/log/messages | head\" or \"du -sk /home/*\".\r\n\r\nThis fixes the issue by doing the loop without chunk counting if the size is not known.","created_at":"2016-01-18T20:33:04Z","updated_at":"2016-02-05T09:31:20Z","closed_at":"2016-02-05T09:31:20Z","merged_at":"2016-02-05T09:31:20Z","merge_commit_sha":"adb3b7f8f5a1ff19d375cb42ad6867d1fe2559df","assignee":{"login":"akrabat","id":33135,"avatar_url":"https://avatars.githubusercontent.com/u/33135?v=3","gravatar_id":"","url":"https://api.github.com/users/akrabat","html_url":"https://github.com/akrabat","followers_url":"https://api.github.com/users/akrabat/followers","following_url":"https://api.github.com/users/akrabat/following{/other_user}","gists_url":"https://api.github.com/users/akrabat/gists{/gist_id}","starred_url":"https://api.github.com/users/akrabat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akrabat/subscriptions","organizations_url":"https://api.github.com/users/akrabat/orgs","repos_url":"https://api.github.com/users/akrabat/repos","events_url":"https://api.github.com/users/akrabat/events{/privacy}","received_events_url":"https://api.github.com/users/akrabat/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/slimphp/Slim/milestones/26","html_url":"https://github.com/slimphp/Slim/milestones/3.2.0","labels_url":"https://api.github.com/repos/slimphp/Slim/milestones/26/labels","id":1451403,"number":26,"title":"3.2.0","description":"","creator":{"login":"akrabat","id":33135,"avatar_url":"https://avatars.githubusercontent.com/u/33135?v=3","gravatar_id":"","url":"https://api.github.com/users/akrabat","html_url":"https://github.com/akrabat","followers_url":"https://api.github.com/users/akrabat/followers","following_url":"https://api.github.com/users/akrabat/following{/other_user}","gists_url":"https://api.github.com/users/akrabat/gists{/gist_id}","starred_url":"https://api.github.com/users/akrabat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akrabat/subscriptions","organizations_url":"https://api.github.com/users/akrabat/orgs","repos_url":"https://api.github.com/users/akrabat/repos","events_url":"https://api.github.com/users/akrabat/events{/privacy}","received_events_url":"https://api.github.com/users/akrabat/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":2,"state":"open","created_at":"2015-12-09T07:25:51Z","updated_at":"2016-02-05T09:31:20Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/slimphp/Slim/pulls/1739/commits","review_comments_url":"https://api.github.com/repos/slimphp/Slim/pulls/1739/comments","review_comment_url":"https://api.github.com/repos/slimphp/Slim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/slimphp/Slim/issues/1739/comments","statuses_url":"https://api.github.com/repos/slimphp/Slim/statuses/3cff1cd57d208d07a14c22f4c1625ff8ff24127f","head":{"label":"jj101k:bugfix-indeterminate-length-body-empty-response","ref":"bugfix-indeterminate-length-body-empty-response","sha":"3cff1cd57d208d07a14c22f4c1625ff8ff24127f","user":{"login":"jj101k","id":444556,"avatar_url":"https://avatars.githubusercontent.com/u/444556?v=3","gravatar_id":"","url":"https://api.github.com/users/jj101k","html_url":"https://github.com/jj101k","followers_url":"https://api.github.com/users/jj101k/followers","following_url":"https://api.github.com/users/jj101k/following{/other_user}","gists_url":"https://api.github.com/users/jj101k/gists{/gist_id}","starred_url":"https://api.github.com/users/jj101k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jj101k/subscriptions","organizations_url":"https://api.github.com/users/jj101k/orgs","repos_url":"https://api.github.com/users/jj101k/repos","events_url":"https://api.github.com/users/jj101k/events{/privacy}","received_events_url":"https://api.github.com/users/jj101k/received_events","type":"User","site_admin":false},"repo":{"id":49899591,"name":"Slim","full_name":"jj101k/Slim","owner":{"login":"jj101k","id":444556,"avatar_url":"https://avatars.githubusercontent.com/u/444556?v=3","gravatar_id":"","url":"https://api.github.com/users/jj101k","html_url":"https://github.com/jj101k","followers_url":"https://api.github.com/users/jj101k/followers","following_url":"https://api.github.com/users/jj101k/following{/other_user}","gists_url":"https://api.github.com/users/jj101k/gists{/gist_id}","starred_url":"https://api.github.com/users/jj101k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jj101k/subscriptions","organizations_url":"https://api.github.com/users/jj101k/orgs","repos_url":"https://api.github.com/users/jj101k/repos","events_url":"https://api.github.com/users/jj101k/events{/privacy}","received_events_url":"https://api.github.com/users/jj101k/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jj101k/Slim","description":"Slim Framework source code","fork":true,"url":"https://api.github.com/repos/jj101k/Slim","forks_url":"https://api.github.com/repos/jj101k/Slim/forks","keys_url":"https://api.github.com/repos/jj101k/Slim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jj101k/Slim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jj101k/Slim/teams","hooks_url":"https://api.github.com/repos/jj101k/Slim/hooks","issue_events_url":"https://api.github.com/repos/jj101k/Slim/issues/events{/number}","events_url":"https://api.github.com/repos/jj101k/Slim/events","assignees_url":"https://api.github.com/repos/jj101k/Slim/assignees{/user}","branches_url":"https://api.github.com/repos/jj101k/Slim/branches{/branch}","tags_url":"https://api.github.com/repos/jj101k/Slim/tags","blobs_url":"https://api.github.com/repos/jj101k/Slim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jj101k/Slim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jj101k/Slim/git/refs{/sha}","trees_url":"https://api.github.com/repos/jj101k/Slim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jj101k/Slim/statuses/{sha}","languages_url":"https://api.github.com/repos/jj101k/Slim/languages","stargazers_url":"https://api.github.com/repos/jj101k/Slim/stargazers","contributors_url":"https://api.github.com/repos/jj101k/Slim/contributors","subscribers_url":"https://api.github.com/repos/jj101k/Slim/subscribers","subscription_url":"https://api.github.com/repos/jj101k/Slim/subscription","commits_url":"https://api.github.com/repos/jj101k/Slim/commits{/sha}","git_commits_url":"https://api.github.com/repos/jj101k/Slim/git/commits{/sha}","comments_url":"https://api.github.com/repos/jj101k/Slim/comments{/number}","issue_comment_url":"https://api.github.com/repos/jj101k/Slim/issues/comments{/number}","contents_url":"https://api.github.com/repos/jj101k/Slim/contents/{+path}","compare_url":"https://api.github.com/repos/jj101k/Slim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jj101k/Slim/merges","archive_url":"https://api.github.com/repos/jj101k/Slim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jj101k/Slim/downloads","issues_url":"https://api.github.com/repos/jj101k/Slim/issues{/number}","pulls_url":"https://api.github.com/repos/jj101k/Slim/pulls{/number}","milestones_url":"https://api.github.com/repos/jj101k/Slim/milestones{/number}","notifications_url":"https://api.github.com/repos/jj101k/Slim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jj101k/Slim/labels{/name}","releases_url":"https://api.github.com/repos/jj101k/Slim/releases{/id}","deployments_url":"https://api.github.com/repos/jj101k/Slim/deployments","created_at":"2016-01-18T19:25:28Z","updated_at":"2016-01-18T19:25:30Z","pushed_at":"2016-01-18T20:21:47Z","git_url":"git://github.com/jj101k/Slim.git","ssh_url":"git@github.com:jj101k/Slim.git","clone_url":"https://github.com/jj101k/Slim.git","svn_url":"https://github.com/jj101k/Slim","homepage":"http://slimframework.com","size":4830,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"3.x"}},"base":{"label":"slimphp:3.x","ref":"3.x","sha":"03b44a4b41896ba42c78bbd5fa172cd79e650496","user":{"login":"slimphp","id":11195762,"avatar_url":"https://avatars.githubusercontent.com/u/11195762?v=3","gravatar_id":"","url":"https://api.github.com/users/slimphp","html_url":"https://github.com/slimphp","followers_url":"https://api.github.com/users/slimphp/followers","following_url":"https://api.github.com/users/slimphp/following{/other_user}","gists_url":"https://api.github.com/users/slimphp/gists{/gist_id}","starred_url":"https://api.github.com/users/slimphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimphp/subscriptions","organizations_url":"https://api.github.com/users/slimphp/orgs","repos_url":"https://api.github.com/users/slimphp/repos","events_url":"https://api.github.com/users/slimphp/events{/privacy}","received_events_url":"https://api.github.com/users/slimphp/received_events","type":"Organization","site_admin":false},"repo":{"id":926544,"name":"Slim","full_name":"slimphp/Slim","owner":{"login":"slimphp","id":11195762,"avatar_url":"https://avatars.githubusercontent.com/u/11195762?v=3","gravatar_id":"","url":"https://api.github.com/users/slimphp","html_url":"https://github.com/slimphp","followers_url":"https://api.github.com/users/slimphp/followers","following_url":"https://api.github.com/users/slimphp/following{/other_user}","gists_url":"https://api.github.com/users/slimphp/gists{/gist_id}","starred_url":"https://api.github.com/users/slimphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimphp/subscriptions","organizations_url":"https://api.github.com/users/slimphp/orgs","repos_url":"https://api.github.com/users/slimphp/repos","events_url":"https://api.github.com/users/slimphp/events{/privacy}","received_events_url":"https://api.github.com/users/slimphp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/slimphp/Slim","description":"Slim Framework source code","fork":false,"url":"https://api.github.com/repos/slimphp/Slim","forks_url":"https://api.github.com/repos/slimphp/Slim/forks","keys_url":"https://api.github.com/repos/slimphp/Slim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slimphp/Slim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slimphp/Slim/teams","hooks_url":"https://api.github.com/repos/slimphp/Slim/hooks","issue_events_url":"https://api.github.com/repos/slimphp/Slim/issues/events{/number}","events_url":"https://api.github.com/repos/slimphp/Slim/events","assignees_url":"https://api.github.com/repos/slimphp/Slim/assignees{/user}","branches_url":"https://api.github.com/repos/slimphp/Slim/branches{/branch}","tags_url":"https://api.github.com/repos/slimphp/Slim/tags","blobs_url":"https://api.github.com/repos/slimphp/Slim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slimphp/Slim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slimphp/Slim/git/refs{/sha}","trees_url":"https://api.github.com/repos/slimphp/Slim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slimphp/Slim/statuses/{sha}","languages_url":"https://api.github.com/repos/slimphp/Slim/languages","stargazers_url":"https://api.github.com/repos/slimphp/Slim/stargazers","contributors_url":"https://api.github.com/repos/slimphp/Slim/contributors","subscribers_url":"https://api.github.com/repos/slimphp/Slim/subscribers","subscription_url":"https://api.github.com/repos/slimphp/Slim/subscription","commits_url":"https://api.github.com/repos/slimphp/Slim/commits{/sha}","git_commits_url":"https://api.github.com/repos/slimphp/Slim/git/commits{/sha}","comments_url":"https://api.github.com/repos/slimphp/Slim/comments{/number}","issue_comment_url":"https://api.github.com/repos/slimphp/Slim/issues/comments{/number}","contents_url":"https://api.github.com/repos/slimphp/Slim/contents/{+path}","compare_url":"https://api.github.com/repos/slimphp/Slim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slimphp/Slim/merges","archive_url":"https://api.github.com/repos/slimphp/Slim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slimphp/Slim/downloads","issues_url":"https://api.github.com/repos/slimphp/Slim/issues{/number}","pulls_url":"https://api.github.com/repos/slimphp/Slim/pulls{/number}","milestones_url":"https://api.github.com/repos/slimphp/Slim/milestones{/number}","notifications_url":"https://api.github.com/repos/slimphp/Slim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slimphp/Slim/labels{/name}","releases_url":"https://api.github.com/repos/slimphp/Slim/releases{/id}","deployments_url":"https://api.github.com/repos/slimphp/Slim/deployments","created_at":"2010-09-21T01:17:06Z","updated_at":"2016-02-05T06:41:13Z","pushed_at":"2016-02-05T09:31:19Z","git_url":"git://github.com/slimphp/Slim.git","ssh_url":"git@github.com:slimphp/Slim.git","clone_url":"https://github.com/slimphp/Slim.git","svn_url":"https://github.com/slimphp/Slim","homepage":"http://slimframework.com","size":6400,"stargazers_count":6349,"watchers_count":6349,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1199,"mirror_url":null,"open_issues_count":40,"forks":1199,"open_issues":40,"watchers":6349,"default_branch":"3.x"}},"_links":{"self":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/1739"},"html":{"href":"https://github.com/slimphp/Slim/pull/1739"},"issue":{"href":"https://api.github.com/repos/slimphp/Slim/issues/1739"},"comments":{"href":"https://api.github.com/repos/slimphp/Slim/issues/1739/comments"},"review_comments":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/1739/comments"},"review_comment":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/1739/commits"},"statuses":{"href":"https://api.github.com/repos/slimphp/Slim/statuses/3cff1cd57d208d07a14c22f4c1625ff8ff24127f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"akrabat","id":33135,"avatar_url":"https://avatars.githubusercontent.com/u/33135?v=3","gravatar_id":"","url":"https://api.github.com/users/akrabat","html_url":"https://github.com/akrabat","followers_url":"https://api.github.com/users/akrabat/followers","following_url":"https://api.github.com/users/akrabat/following{/other_user}","gists_url":"https://api.github.com/users/akrabat/gists{/gist_id}","starred_url":"https://api.github.com/users/akrabat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akrabat/subscriptions","organizations_url":"https://api.github.com/users/akrabat/orgs","repos_url":"https://api.github.com/users/akrabat/repos","events_url":"https://api.github.com/users/akrabat/events{/privacy}","received_events_url":"https://api.github.com/users/akrabat/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":35,"deletions":9,"changed_files":2}}