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

feat(downloader): Avoid downloading login pages #1533

Merged
merged 8 commits into from
Oct 18, 2024

Conversation

tobias-wilfert
Copy link
Member

@tobias-wilfert tobias-wilfert commented Oct 10, 2024

Introduces a custom redirect policy to avoid downloading login pages (uses a very crude heuristic).

Fixes: #1526

@tobias-wilfert tobias-wilfert changed the title WIP: Implemented possible solution to the login page issue. WIP: feat(downloader): Avoid downloading login pages Oct 14, 2024
@tobias-wilfert tobias-wilfert changed the title WIP: feat(downloader): Avoid downloading login pages feat(downloader): Avoid downloading login pages Oct 14, 2024
@loewenheim
Copy link
Contributor

Can you add a test that attempts to download a file from dev.azure.com and checks what result it produces? See the tests in download/http.rs for examples.

@tobias-wilfert tobias-wilfert self-assigned this Oct 16, 2024
@tobias-wilfert tobias-wilfert merged commit 3cfaf3c into master Oct 18, 2024
13 checks passed
@tobias-wilfert tobias-wilfert deleted the fix-download-login-pages branch October 18, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conditionally treat downloaded HTML files as errors
2 participants