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

utils/fetch: support options.agent being a boolean. #2300

Merged
merged 1 commit into from May 31, 2022

Conversation

mook-as
Copy link
Contributor

@mook-as mook-as commented May 31, 2022

node-fetch/node-fetch#1502 changed the type of options.agent to allow a boolean, which caused issues as we tried to call it. Flip the condition around and check for function instead, so that this
compiles.

Fixes issue Eric reported over Slack.

node-fetch/node-fetch#1502 changed the type of
options.agent to allow a boolean, which caused issues as we tried to call
it.  Flip the condition around and check for function instead, so that this
compiles.

Signed-off-by: Mark Yen <mark.yen@suse.com>
Copy link
Contributor

@ericpromislow ericpromislow left a comment

Choose a reason for hiding this comment

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

LGTM

@ericpromislow ericpromislow merged commit a63f72f into rancher-sandbox:main May 31, 2022
@mook-as mook-as deleted the node-fetch-type-update branch June 1, 2022 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants