Added `OnMungeHeader` to munge header dynamically