Skip to content

Commit

Permalink
Revert "feat: add lookup method (#1595)"
Browse files Browse the repository at this point in the history
This reverts commit df06131.
  • Loading branch information
niftylettuce committed Jan 19, 2022
1 parent 9975981 commit f99e624
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
16 changes: 0 additions & 16 deletions src/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ function Request(method, url) {
this.qsRaw = this._query; // Unused, for backwards compatibility only
this._redirectList = [];
this._streamRequest = false;
this._lookup = null;
this.once('end', this.clearTimeout.bind(this));
}

Expand Down Expand Up @@ -307,20 +306,6 @@ Request.prototype.agent = function (agent) {
return this;
};

/**
* Gets/sets the `lookup` function to use custom DNS resolver.
*
* @param {Function} lookup
* @return {Function}
* @api public
*/

Request.prototype.lookup = function (lookup) {
if (arguments.length === 0) return this._lookup;
this._lookup = lookup;
return this;
};

/**
* Set _Content-Type_ response header passed through `mime.getType()`.
*
Expand Down Expand Up @@ -780,7 +765,6 @@ Request.prototype.request = function () {
options.cert = this._cert;
options.passphrase = this._passphrase;
options.agent = this._agent;
options.lookup = this._lookup;
options.rejectUnauthorized =
typeof this._disableTLSCerts === 'boolean'
? !this._disableTLSCerts
Expand Down
21 changes: 0 additions & 21 deletions test/node/lookup.js

This file was deleted.

0 comments on commit f99e624

Please sign in to comment.