Skip to content

Fetch redirected urls#900

Merged
drujensen merged 3 commits into
amberframework:masterfrom
faustinoaq:fa/fixes-recipes
Oct 18, 2018
Merged

Fetch redirected urls#900
drujensen merged 3 commits into
amberframework:masterfrom
faustinoaq:fa/fixes-recipes

Conversation

@faustinoaq

Copy link
Copy Markdown
Contributor

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

@eliasjpr eliasjpr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@faustinoaq

faustinoaq commented Jul 6, 2018

Copy link
Copy Markdown
Contributor Author

This works but is pretty hacky, What would happens if the URL redirects 3 or more times?

I think we need something like HTTP::Client.get("<url>", redirects: true) @asterite @RX14 @straight-shoota @ysbaddaden, WDYT?

@asterite

asterite commented Jul 6, 2018

Copy link
Copy Markdown

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)

@drujensen

Copy link
Copy Markdown
Member

@faustinoaq should we merge this or should this wait?

@drujensen

Copy link
Copy Markdown
Member

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.

@drujensen drujensen closed this Oct 14, 2018
@drujensen drujensen reopened this Oct 18, 2018
@drujensen drujensen merged commit 6400f7f into amberframework:master Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants