Fix callback for res.on('end')
Merge pull request #1 from vitosamson/master

Fix callback for res.on('end')