return early from removeContentHeaders if res._headers is null