or even just sending the headers on nextTick would be a lot nicer