{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/sails/issues/2980","labels_url":"https://api.github.com/repos/balderdashy/sails/issues/2980/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails/issues/2980/comments","events_url":"https://api.github.com/repos/balderdashy/sails/issues/2980/events","html_url":"https://github.com/balderdashy/sails/issues/2980","id":83810456,"number":2980,"title":"issue with transfer-encoding. ","user":{"login":"martingg88","id":7898120,"avatar_url":"https://avatars.githubusercontent.com/u/7898120?v=3","gravatar_id":"","url":"https://api.github.com/users/martingg88","html_url":"https://github.com/martingg88","followers_url":"https://api.github.com/users/martingg88/followers","following_url":"https://api.github.com/users/martingg88/following{/other_user}","gists_url":"https://api.github.com/users/martingg88/gists{/gist_id}","starred_url":"https://api.github.com/users/martingg88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martingg88/subscriptions","organizations_url":"https://api.github.com/users/martingg88/orgs","repos_url":"https://api.github.com/users/martingg88/repos","events_url":"https://api.github.com/users/martingg88/events{/privacy}","received_events_url":"https://api.github.com/users/martingg88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-02T03:15:05Z","updated_at":"2015-06-02T18:59:27Z","closed_at":null,"body":"i do have issues for following code? any idea. \r\n\r\n1. transfer-coding is not set in response header.\r\n\r\n2. res.write doesn't output in browser instantly. but it will only output once the  res.end is hit. \r\n\r\n function(req, res){\r\n\r\n\r\n\r\n        res.writeHead(200, {'Content-Type':'text/plain;charset=UTF-8', 'Transfer-Encoding': 'chunked'});\r\n        res.write(\"testing\\r\\n\");\r\n        res.write(\"testing\\r\\n\");\r\n        res.write(\"testing\\r\\n\");\r\n\r\n\r\n        setTimeout(function(){\r\n            return res.end('end');\r\n        }, 60000)\r\n\r\n\r\n    }"},"comment":{"url":"https://api.github.com/repos/balderdashy/sails/issues/comments/108056650","html_url":"https://github.com/balderdashy/sails/issues/2980#issuecomment-108056650","issue_url":"https://api.github.com/repos/balderdashy/sails/issues/2980","id":108056650,"user":{"login":"nikhiljohn10","id":5616249,"avatar_url":"https://avatars.githubusercontent.com/u/5616249?v=3","gravatar_id":"","url":"https://api.github.com/users/nikhiljohn10","html_url":"https://github.com/nikhiljohn10","followers_url":"https://api.github.com/users/nikhiljohn10/followers","following_url":"https://api.github.com/users/nikhiljohn10/following{/other_user}","gists_url":"https://api.github.com/users/nikhiljohn10/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhiljohn10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhiljohn10/subscriptions","organizations_url":"https://api.github.com/users/nikhiljohn10/orgs","repos_url":"https://api.github.com/users/nikhiljohn10/repos","events_url":"https://api.github.com/users/nikhiljohn10/events{/privacy}","received_events_url":"https://api.github.com/users/nikhiljohn10/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T18:59:27Z","updated_at":"2015-06-02T18:59:27Z","body":"Yes it will. Try that code is a fresh sails app.\n\nOn 10:59PM, Tue, Jun 2, 2015 martingg88 <notifications@github.com> wrote:\n\n> sorry i wrongly explained the last post.\n>\n> Act i do have script that will be activated by browser and download large\n> file from other server. In between, i expect to send progress status to\n> browser while downloding. i think the script i posted in this discussion\n> should be able to simulate to this workflow. Do you have any idea how come\n> it only send the all of the output (etc: 'testing') to browser after\n> timeout? I thought it should send the output for each res.write instantly.\n> isn't it?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/balderdashy/sails/issues/2980#issuecomment-108014433>.\n>\n"}}