-
Notifications
You must be signed in to change notification settings - Fork 205
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
Fetch redirected urls #900
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works but is pretty hacky, What would happens if the URL redirects 3 or more times? I think we need something like |
There's an open issue for that in the stdlib. Someone just has to implement it (and it needs to be discussed how to implement it, which will probably result in it becoming a monster of complexity) |
@faustinoaq should we merge this or should this wait? |
Closing this. Recipes will no longer be hosted by Amber. We will work on allowing a recipe to be provided by a shard in a git repository. |
Description of the Change
This PR adds the ability to fetch redirected urls like the used on recipes release page
Alternate Designs
Use redirect option on
HTTP::Client
(not supported yet, see: crystal-lang/crystal#2721)Benefits
Fixes #899
Possible Drawbacks
No