From a9f893884157bc40c95e206fa384c03ab30d36f1 Mon Sep 17 00:00:00 2001 From: Szymon Marczak <36894700+szmarczak@users.noreply.github.com> Date: Fri, 8 May 2020 13:06:17 +0200 Subject: [PATCH] Follow-up second fix --- source/core/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/index.ts b/source/core/index.ts index 866816447..e0038cf7c 100644 --- a/source/core/index.ts +++ b/source/core/index.ts @@ -765,7 +765,7 @@ export default class Request extends Duplex implements RequestEvents { // `options.dnsCache` if (options.dnsCache === true) { options.dnsCache = new CacheableLookup(); - } else if (!is.undefined(options.dnsCache) && options.dnsCache !== false && !(options.dnsCache instanceof CacheableLookup)) { + } else if (!is.undefined(options.dnsCache) && !(options.dnsCache instanceof CacheableLookup)) { throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${is(options.dnsCache)}`); }