Skip to content

Commit b3e327d

Browse files
fix(dns): fixed cacheable-lookup integration; (#5836)
1 parent 8fda276 commit b3e327d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/adapters/http.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,13 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
391391
auth,
392392
protocol,
393393
family,
394-
lookup,
395394
beforeRedirect: dispatchBeforeRedirect,
396395
beforeRedirects: {}
397396
};
398397

398+
// cacheable-lookup integration hotfix
399+
!utils.isUndefined(lookup) && (options.lookup = lookup);
400+
399401
if (config.socketPath) {
400402
options.socketPath = config.socketPath;
401403
} else {

0 commit comments

Comments
 (0)