mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
fix(dns): fixed cacheable-lookup integration; (#5836)
This commit is contained in:
@@ -391,11 +391,13 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
|
|||||||
auth,
|
auth,
|
||||||
protocol,
|
protocol,
|
||||||
family,
|
family,
|
||||||
lookup,
|
|
||||||
beforeRedirect: dispatchBeforeRedirect,
|
beforeRedirect: dispatchBeforeRedirect,
|
||||||
beforeRedirects: {}
|
beforeRedirects: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// cacheable-lookup integration hotfix
|
||||||
|
!utils.isUndefined(lookup) && (options.lookup = lookup);
|
||||||
|
|
||||||
if (config.socketPath) {
|
if (config.socketPath) {
|
||||||
options.socketPath = config.socketPath;
|
options.socketPath = config.socketPath;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user