check headerSent