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

remove Authorization header from the redirect call #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

legigor
Copy link

@legigor legigor commented Apr 26, 2018

This workaround fixes the flacking error 400 on API is observed last weeks: 'Authentication information is not given in the correct format. Check the value of Authorization header.'

I've discovered with Fiddler it is getting the correct 302 response to the 1st call when the token is validated but on the 2nd call it fails with the error mentioned above.

There are a few of the mentions of this bug last days:

I found the difference between performing the calls from different HTTP client like Postman and CURL. Some of them are not propagating the headers on redirect.

So, the idea of the fix is to disable auto-redirect and on the second call to remove the Authorization header explicitly.

The similar problem and solution is described here:

This workaround fixes the flacking error 400 on API
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.

None yet

1 participant