-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fixes 'no redirects' configuration on redirect policy #5790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
8211b5d
ec3961f
ece72f6
fff64df
238b909
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,7 +73,7 @@ async def test_example_async_redirect_policy(): | |
|
|
||
| # It can also be overridden per operation. | ||
| async with AsyncPipelineClient(base_url=url, config=config) as client: | ||
| response = await client._pipeline.run(request, redirect_max=5) | ||
| response = await client._pipeline.run(request, permit_redirects=True, redirect_max=5) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. permit_redirects=True is the default value, not right?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes it is default value. The reason I used it here is because a couple lines up I disable redirects and then wanted to re-enable it for the test example. I'll move it to a separate test. |
||
|
|
||
| # [END async_redirect_policy] | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why move the check out of increment method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two reasons: