From b3e327dcc9277bdce34c7ef57beedf644b00d628 Mon Sep 17 00:00:00 2001 From: Dmitriy Mozgovoy Date: Sat, 26 Aug 2023 18:51:09 +0300 Subject: [PATCH] fix(dns): fixed `cacheable-lookup` integration; (#5836) --- lib/adapters/http.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/adapters/http.js b/lib/adapters/http.js index bf6c2fffcb..fc478c4caa 100755 --- a/lib/adapters/http.js +++ b/lib/adapters/http.js @@ -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 {