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

add more http redirects #9135

Merged
merged 2 commits into from
Feb 26, 2024
Merged

Conversation

brettfo
Copy link
Collaborator

@brettfo brettfo commented Feb 26, 2024

When testing NuGet updates against a GitHub package feed, I discovered that there were other types of 30X redirects that weren't being followed.

This PR follows information found here about various types of 30X redirects, specifically, 301, 302, 303, 307, and 308. The redirects not covered are the ones where there's not a specific Location: header returned that can be followed, e.g., 300 which can specify multiple redirect options, but according to the documentation is rare, and 304 which means a cached version can be used, but our updater won't have a cached version to use.

@brettfo brettfo requested a review from a team as a code owner February 26, 2024 20:50
@github-actions github-actions bot added the L: dotnet:nuget NuGet packages via nuget or dotnet label Feb 26, 2024
@brettfo brettfo marked this pull request as draft February 26, 2024 21:18
@brettfo brettfo marked this pull request as ready for review February 26, 2024 21:23
@abdulapopoola abdulapopoola merged commit 2adcebb into main Feb 26, 2024
67 checks passed
@abdulapopoola abdulapopoola deleted the dev/brettfo/nuget-package-redirects branch February 26, 2024 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants