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

Follow redirects #189

Closed

Conversation

AlasdairWilkins
Copy link

Instruct wreck to follow up to 20 redirects.

I was trying to get a token from a server that redirected from the bare domain to www, which wasn't working because wreck wasn't instructed to follow redirects. Unless there's a security consideration, this seems like it makes the library more ergonomic. I picked 20 redirects because that seems to be standard for browsers.

Instruct wreck to follow up to 20 redirects.
@jonathansamines
Copy link
Collaborator

@AlasdairWilkins This is already possible because you are allowed to override most of the options from the underlying wreck library. Not sure if we should set a default number of redirections though.

See: https://github.com/lelylan/simple-oauth2#options

jonathansamines added a commit that referenced this pull request Sep 24, 2019
Follow up to 20 redirects (browsers standard). Resolves #189
@jonathansamines
Copy link
Collaborator

Resolved by #255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants