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? #1

Closed
lukeed opened this issue Jan 29, 2019 · 1 comment
Closed

Follow Redirects? #1

lukeed opened this issue Jan 29, 2019 · 1 comment

Comments

@lukeed
Copy link
Owner

lukeed commented Jan 29, 2019

This would be fairly straightforward & could totally be fit in as a minor bump.

Any 3xx response (that also has a location header) should automatically be followed. Of course, httpie will appropriately handle relative, absolute, and complete location values.

The questions are:

  1. Should httpie handle redirects?
    I assume the majority will vote yes, because why not?


  1. Should httpie do this automatically, or put it behind a opts flag?
    Again, I'd assume majority yes because why would you not want to follow it?



@lukeed
Copy link
Owner Author

lukeed commented Jan 30, 2019

Thank you all for casting your vote! Redirects are now enabled by default, but can be disabled by setting opts.redirect to a falsey value.

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

No branches or pull requests

1 participant