support for AllowAutoRedirect flag