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
headers are not available in beforeRedirect #5365
Comments
I can confirm. |
Appreciate the work that has gone into making this package. I tried the fix mentioned in #5176 (installing a different release,. axios@1.2.0-alpha.1) but that didn't seem to work and accessing headers using beforeRedirect still seems to be broken. |
confirm issue, 1.3.5 still not works |
I confirm too |
+1 can confirm the problem persists on v1.3.6 |
pls fix, want use latest version but cant |
1.4.0 doesn't work as well |
I guess this is the solution 8b5cab4 |
Still doesn't work in 1.6.1. |
Encountered in 1.6.5 |
Describe the bug
According to the documentation the configuration option
beforeRedirect
should be called with response headers but it does not. Only theoptions
parameter is passed tobeforeRedirect
(i.e. noheaders
parameter).(copied from https://www.npmjs.com/package/axios/v/1.2.1#request-config)
This seems to be a duplicate of #5176.
To Reproduce
Code snippet
No response
Expected behavior
beforeRedirect
should be called with both theoptions
andheaders
parameters.Axios Version
1.2.1
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: