luvit/luvit — Issue #88: Request misses 'end'/'closed' events
Author: dvv
Created: 2012-01-18 15:53:36+00:00
State: open

Test case:
```lua
require("http").create_server("0.0.0.0", 8080, function (req, res)
req:on('closed', function () p('CLOSED') end)
req:on('data', function () p('DATA') end)
req:on('end', function () p('ENDED') end)
res:finish(body)
end)
```

One can try `curl`ing http://localhost:8080/ and see no expected events.

The fix is to remove https://github.com/luvit/luvit/blob/master/lib/response.lua#L85 , but I believe this deserves more careful attention.

TIA,
--Vladimir