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