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(fetch): do not assign default value to RequestInit.method #1529

Merged
merged 1 commit into from Jul 5, 2022

Conversation

KhafraDev
Copy link
Member

@KhafraDev KhafraDev commented Jul 4, 2022

Fixes #1527


The fetch docs confused me; for the method getter steps, GET is the default value. It should have been unset if the value was not provided in the constructor, though.

See:

  1. https://fetch.spec.whatwg.org/#ref-for-dom-requestinit-method
  2. https://fetch.spec.whatwg.org/#concept-request-method

@GauBen
Copy link

GauBen commented Jul 8, 2022

Hello @ronag, this fix is quite critical for undici to work correctly, could you please release it to npm?

@ronag
Copy link
Member

ronag commented Jul 8, 2022

@GauBen done

@GauBen
Copy link

GauBen commented Jul 8, 2022

Thanks!

metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
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.

fetch no longer respects Request object as a parameter
3 participants