Closed merceyz closed 4 years ago
Merging #162 into master will not change coverage by
%
. The diff coverage isn/a
.
@@ Coverage Diff @@
## master #162 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 175 177 +2
=========================================
+ Hits 175 177 +2
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 22f6192...097f62f. Read the comment docs.
Since it's not important that the key is a valid url a simple solution could be req.baseURL + '-' + req.url
, i'm fine either way
Might be fixed upstream, PR: https://github.com/axios/axios/pull/2751
Awesome job thank you 🙂
I'm ok with the whatwg-url
solution, I'll follow what axios decides to do in the end on the PR you mentioned.
What's the problem this PR addresses?
When using
axios@0.19.2
thereq.url
property doesn't include thebaseURL
. This resulted in requests with the samepath
but a differentbaseURL
to be cached with the same key.How did you fix it?
Used
whatwg-url
to combinereq.url
and a potentialreq.baseURL
into a full url