{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/22066","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/22066/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/22066/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/22066/events","html_url":"https://github.com/nodejs/node/issues/22066","id":346712193,"node_id":"MDU6SXNzdWUzNDY3MTIxOTM=","number":22066,"title":"http: Stream#write with an empty buffer does not call callback","user":{"login":"RubenVerborgh","id":675313,"node_id":"MDQ6VXNlcjY3NTMxMw==","avatar_url":"https://avatars1.githubusercontent.com/u/675313?v=4","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":[{"id":155267422,"node_id":"MDU6TGFiZWwxNTUyNjc0MjI=","url":"https://api.github.com/repos/nodejs/node/labels/http","name":"http","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-01T18:17:38Z","updated_at":"2018-08-01T19:50:34Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When writing an empty buffer, Stream#write does not call the callback: https://github.com/nodejs/node/blob/v10.7.0/lib/_http_outgoing.js#L608\r\n\r\nIs this intended? If so, this should probably be mentioned explicitly in the documentation.\r\nIf not, we might want to fix this."},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/409699698","html_url":"https://github.com/nodejs/node/issues/22066#issuecomment-409699698","issue_url":"https://api.github.com/repos/nodejs/node/issues/22066","id":409699698,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTY5OTY5OA==","user":{"login":"amitzur","id":394320,"node_id":"MDQ6VXNlcjM5NDMyMA==","avatar_url":"https://avatars3.githubusercontent.com/u/394320?v=4","gravatar_id":"","url":"https://api.github.com/users/amitzur","html_url":"https://github.com/amitzur","followers_url":"https://api.github.com/users/amitzur/followers","following_url":"https://api.github.com/users/amitzur/following{/other_user}","gists_url":"https://api.github.com/users/amitzur/gists{/gist_id}","starred_url":"https://api.github.com/users/amitzur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitzur/subscriptions","organizations_url":"https://api.github.com/users/amitzur/orgs","repos_url":"https://api.github.com/users/amitzur/repos","events_url":"https://api.github.com/users/amitzur/events{/privacy}","received_events_url":"https://api.github.com/users/amitzur/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T19:50:34Z","updated_at":"2018-08-01T19:50:34Z","author_association":"NONE","body":"I reported the original issue to `axios`. I now wonder how this code does work (or in other words how to reproduce with a minimal example):\r\n```\r\nprocess.stdout.write(Buffer.from(''), err => {\r\n  console.log('done!', err);\r\n});\r\n```\r\noutput:\r\n```\r\ndone! undefined\r\n```"}}
{"actor":{"display_login":"amitzur"}}