update sentHeaders check to make compatible with 0.8.26