Repository navigation
Drop RedirectLoop exception - #819
Merged
Merged
Conversation
oczkers
force-pushed
the
drop_redirectloop
branch
from
February 20, 2020 11:21
5f5f40e to
d6e9fd9
Compare
| async def test_redirect_loop(): | ||
| client = AsyncClient(dispatch=MockDispatch()) | ||
| with pytest.raises(RedirectLoop): | ||
| await client.get("https://example.org/redirect_loop") |
Member
There was a problem hiding this comment.
I guess we could keep this test in, and just ensure that TooManyRedirects is raised?
Contributor
Author
There was a problem hiding this comment.
There is already test for TooManyRedirects with 21 redirects so i thought it's gonna be enough but sure more is better.
lovelydinosaur
approved these changes
Feb 24, 2020
lovelydinosaur
left a comment
Member
There was a problem hiding this comment.
Looks good to me yup!
There's one test case here that we could potentially change to a TooManyRedirects test case. Although I'd probably be happy to accept the PR either way.
Anyone else got feedback on this?
Member
|
Fab, thanks! |
Member
|
Minor API change here, which is fine since we're already commited to the next release being 0.12.0 |
Merged
Kludex
referenced
this pull request
in pydantic/httpx2
May 11, 2026
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.277 to 0.0.291. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](astral-sh/ruff@v0.0.277...v0.0.291) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Simply drop RedirectLoop exception and instead rely on max number of redirects (and retries on future) like requests, urllib3 and many others do.
More info in previous closed pr #801