set `headerSent` on `header` event