Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Handle HTTP redirect status code #27

Closed
dongsupark opened this issue Nov 14, 2023 · 1 comment · Fixed by #29
Closed

Handle HTTP redirect status code #27

dongsupark opened this issue Nov 14, 2023 · 1 comment · Fixed by #29
Assignees
Labels
kind/feature A feature request.

Comments

@dongsupark
Copy link
Member

In download_and_hash of src/download.rs, we should also either make use of https://docs.rs/reqwest/latest/reqwest/redirect/struct.Attempt.html#method.follow or check is_redirection and act accordingly.

@dongsupark
Copy link
Member Author

PR #29.
It is basically the 1st approach, reqwest Attempt. The default reqwest Client builder already supports the redirect attempt.

Went with the 2nd approach as well, but it was a big ugly rabbit hole.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
kind/feature A feature request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant