Skip to content
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

Extend linkchecker GET fallback logic to handle Too Many Redirects #8475

Merged
merged 6 commits into from
Nov 23, 2020

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Nov 22, 2020

Feature or Bugfix

  • Bugfix

Purpose

sbesson and others added 4 commits August 17, 2020 09:27
Some websites will enter infinite redirect loops with HEAD requests. In this
case, the GET fallback is ignored as the exception is of type TooManyRedirects
and the link is reported as broken.
This extends the except clause to retry with a GET request for such scenarios.
@tk0miya
Copy link
Member Author

tk0miya commented Nov 22, 2020

@francoisfreitag Do you have any opinion for this?

Copy link
Contributor

@francoisfreitag francoisfreitag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

CHANGES Outdated Show resolved Hide resolved
Co-authored-by: François Freitag <mail@franek.fr>
@tk0miya
Copy link
Member Author

tk0miya commented Nov 23, 2020

Thank you for reviewing :-) I'll merge this soon after testing passed.

@tk0miya tk0miya merged commit 0131f77 into sphinx-doc:3.x Nov 23, 2020
@tk0miya tk0miya deleted the 8131_too_many_redirects branch November 23, 2020 08:16
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants