-
Notifications
You must be signed in to change notification settings - Fork 203
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
FollowRedirects clearing authorization header on redirect by default breaks integration #187
Comments
@wyantb I'm really sorry you had issues because of this change. You're perfectly right about backwards-compatibility, however this change should only take place when you're redirected to a different hostname, so there should be no impact on normal applications. We've decided to address this as a security bug because sending the same auth header to different hostnames by mistake is wrong in most cases. I'm actually curious about your specific case and how this has affected you. |
In my particular case I'm calling Nest's API, |
Thanks @wyantb, that's exactly the scenario I was thinking about. |
In #183 , the FollowRedirects middleware behavior changed from keeping auth headers by default to clearing auth headers by default. I appreciate that the option is useful, but I don't think that a minor version bump (from 0.12.2 to 0.13.1) should introduce such a notable change without warning.
How about making the default false? If others like me have a
Gemfile.lock
that fixes their faraday_middleware version to an older version, they may not detect this issue for some time in their projects. Having the default be backwards compatible would avoid some sticker shock.The text was updated successfully, but these errors were encountered: