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
Logging with baseUrl #42
Conversation
Hi @tenorok Thanks for your contribution! Could you please fix the code style to match standardjs? Moreover, it seems the CI is broken, maybe we should use the |
Actually, it's a breaking change in axios@0.19.1, which won't merge baseURL into config.url in adapters. After you finish this change, it's better to test it in both 0.19.0 and 0.19.1. Appreciate again |
I fixed code style and move to use url module. Also created a unit test and successful ran it with |
Would you try |
You absolutely right and now I see what did you mean. I think that most reasonably use functions from the axios itself, but for versions earlier than 0.19.1 just the copied function If everything okay let me know and I will squash the commits. |
Still incorrect with
Thanks for your hard work! Edit: see below |
Oh, after some investigation, it seems not work well even after 0.17.0 (axios/axios#950) So actually there are 3 behaviors with url and baseURL in axios:
Hence, we really need a feature detection but not a version detection Got an approach: we could make use of the bold behavior, and drop Anyway, this will be into a major (0.7.0) change, will continue in #43 |
Hello, I noticed that the URL is logging not completely when using
baseUrl
config property.For example:
Before:
After: