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

Head requests for server discovery #943

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

AllegraCodes
Copy link

Optionally add the result of an HTTP redirect to the discovered servers during the remote discovery process, but only if the redirect stays on the same domain.

Resolves #471

Adds head requests to the ApiClient and loosens the requirement to return OK status by allowing a specified range. The redirect logic is contained in RecommendedServerDiscovery, supported by a new RecommendedServerIssue to slightly prefer non-redirected addresses. If an address was found as the result of following a redirect, its RecommendedServerInfo will include the original address, and a new method isRedirect() returns true.

@jellyfin-bot jellyfin-bot added the merge conflict Conflicts prevent merging label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge conflict Conflicts prevent merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Follow index redirect in discovery
2 participants