monkey patch res.writeHead

`header` event no longer exists on express 4, monkey patching is better
here.