Only change header's content length if exists