2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

fix(dns): fixed cacheable-lookup integration; (#5836)

This commit is contained in:
Dmitriy Mozgovoy
2023-08-26 18:51:09 +03:00
committed by GitHub
parent 8fda2766b1
commit b3e327dcc9
+3 -1
View File
@@ -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 {