Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 21, 2022. It is now read-only.

Conversation

@hubertlepicki
Copy link
Contributor

This is still work in progress, but sending over in case you want to have a look.

In short: I need to follow redirects. HTTPoison / hackney have options of follow_redirect and max_redirect. I think better names are "follow_redirects" and "max_redirects" so used these instead.

The default behavior should be not to follow redirects, I think.

If you pass option of "follow_redirects: true", I think we should have some low max_redirects set, to something like 3. This means up to 3 redirects will be followed before we error.

The pull request so far implements the infinite redirects, there is no max_redirects option yet and no error handling, also has only basic tests.

Submitting for feedback if you have time to give me some, I'll probably work some more on this over weekend :)

@ettomatic
Copy link

@hubertlepicki @gamache any update on this? I'd be happy to continue working on this feature if you like.

@bruce
Copy link

bruce commented Jul 22, 2020

@hubertlepicki @gamache Also registering my interest in getting support for :follow_redirect in. I like the way this is implemented, but I'd be happy to help if changes are necessary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants