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: don't copy httpsAgent [EXT-5676] #526

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

jjolton-contentful
Copy link
Contributor

Customers face issues using custom httpsAgents that utilized private fields. Since these fields are not enumerable, they are not copyable, and must be excluded from the deep copy that is utilized to ensure we avoid mutating things unnecessarily.

@axe312ger
Copy link
Contributor

If we do this, we should do it for httpAgent as well, as we pass this one also down to axios

httpAgent: config.httpAgent,

@jjolton-contentful jjolton-contentful merged commit f923fc4 into master Nov 20, 2024
2 checks passed
@jjolton-contentful jjolton-contentful deleted the fix/do-not-copy-https-agent branch November 20, 2024 18:49
@contentful-automation
Copy link

🎉 This PR is included in version 9.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@axe312ger
Copy link
Contributor

Congrats to the fix 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants