Skip to content
New issue

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

fix: Proxy and client cert authentication #1068

Merged
merged 10 commits into from
Mar 5, 2021
Prev Previous commit
Next Next commit
empty spaces
  • Loading branch information
FrankEssenberger committed Mar 5, 2021
commit c147edd945d57a81403802115a465f757689f6f5
4 changes: 2 additions & 2 deletions packages/core/src/http-client/http-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export function getAgentConfig(
// eslint-disable-next-line @typescript-eslint/no-shadow
const certificateOptions = getCertificateOption(destination);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see shadow name. Could you please share a bit details?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for me I got a lint error that the variable in the if block below is shadowed - I do not understand that either.

if (agentType === AgentType.PROXY) {
return createProxyAgent(destination,certificateOptions);
return createProxyAgent(destination, certificateOptions);
}
return createDefaultAgent(destination,certificateOptions);
return createDefaultAgent(destination, certificateOptions);
}

enum AgentType {
Expand Down