don't use res._headerSent
fix for Node 0.11