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

Pass dispatcher options to global fetch #653

Merged
merged 2 commits into from
Jul 1, 2024
Merged

Conversation

Kruspe
Copy link
Contributor

@Kruspe Kruspe commented Jun 5, 2024

*Issue: #650

Description of changes:
As the global fetch in node follows the undici fetch implementation there is an extra dispatcher option that can be passed but is not supported by the Request class.
We check if the extra option is supplied and if so pass the option directly to the global fetch call. All other paths already pass all options as expected.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jj22ee
Copy link
Contributor

jj22ee commented Jul 1, 2024

The tests are failing on NodeJS v20.x. Can you take a look into them, perhaps my suggestion could fix them?

@Kruspe
Copy link
Contributor Author

Kruspe commented Jul 1, 2024

Hey sorry for the late update! I did not get a notification that the tests ran here.
An update to Node 20 seems to have broken the previous implementation but your suggestion should work just fine. I'll keep a close look now but my guess would be that all the tests should now pass inside the GH actions.

@jj22ee jj22ee merged commit b39b5e2 into aws:master Jul 1, 2024
13 checks passed
@Kruspe Kruspe deleted the add-proxy-support branch July 2, 2024 06:49
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.

2 participants