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)}`); }