unify END_HEADERS flag