We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const axiodOrAxios = typeof axiod !== 'undefined' ? axiod : typeof axios !== 'undefined' ? axios : undefined; const client = axiodOrAxios.create({ baseURL: 'https://httpstat.us' }); let _config; client.interceptors.request.use(config => { _config = config; return config; }); client.interceptors.response.use( response => { console.log(_config === response.config); return response; }, error => { console.log(_config === error.config); return Promise.reject(error); } ); await client.get('/200'); await client.get('/401', { validateStatus: () => true });
Expected output (axios-like) :
axios
true true
Actual output :
false false
Thanks
The text was updated successfully, but these errors were encountered:
@KaKi87 can open a PR ?
Sorry, something went wrong.
I am requesting this fix but am not qualified to do it myself, sorry.
No branches or pull requests
Expected output (
axios
-like) :Actual output :
Thanks
The text was updated successfully, but these errors were encountered: