We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_agent
The declared variable _agent is local in the interface of the Connection class, here:
\\Connection.d.ts export default class Connection { ... _agent: http.Agent | https.Agent | hpagent.HttpProxyAgent | hpagent.HttpsProxyAgent; ...
The gist of the bug is that, it was discovered that in the class itself, the call goes to the agent variable, example:
if (typeof opts.agent === 'function') { this.agent = opts.agent(opts); } else if (opts.agent === false) { this.agent = undefined; }
Should be
if (typeof opts.agent === 'function') { this._agent = opts.agent(opts); } else if (opts.agent === false) { this.a_gent = undefined; }
The text was updated successfully, but these errors were encountered:
TypeScript
Nice Catch!
Sorry, something went wrong.
No branches or pull requests
What is the bug?
The declared variable _agent is local in the interface of the Connection class, here:
The gist of the bug is that, it was discovered that in the class itself, the call goes to the agent variable, example:
Should be
The text was updated successfully, but these errors were encountered: