set a flag while changing headers, and call `onHeadersModified` before headers continue.
set a flag while changing headers, and call
onHeadersModifiedbefore headers continue.