You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The getUri method only returns the supplied url parameter and not the full request URL. However, using this method in a response interceptor seems to work correctly
This might be a duplicate or related to #2190 but I'm not sure so just throwing this out there anyway.
The example shows that the getUri method only returns the url parameter in the request interceptor but in the response interceptor the full URL is returned.
Expected behavior
The getUri method always returns the full URL of the request config
Environment:
Axios Version [0.19.0]
OS: [OSX 10.13.4]
Environment [node >= 10]
The text was updated successfully, but these errors were encountered:
hi @adam-mccormick , the url before sent to request doesn't include the baseURL is a breaking change since v0.17.0. This change introduced by PR #950 which makes the baseURL work in the interceptor.
Describe the bug
The
getUri
method only returns the suppliedurl
parameter and not the full request URL. However, using this method in a response interceptor seems to work correctlyThis might be a duplicate or related to #2190 but I'm not sure so just throwing this out there anyway.
To Reproduce
Runkit example
The example shows that the
getUri
method only returns theurl
parameter in the request interceptor but in the response interceptor the full URL is returned.Expected behavior
The
getUri
method always returns the full URL of the request configEnvironment:
The text was updated successfully, but these errors were encountered: