-
Notifications
You must be signed in to change notification settings - Fork 37
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
Fetch RequestInit method parameter issue #128
Comments
Yes rescript-lang/rescript#6354 removed I'll try to find some way to fix this without breaking ReScript 10 compatibility. It would be a shame to need a breaking version change just for v11 support. If I can't make it work I might just pull fetch out and link to rescript-fetch instead (the fetch support in webapi was pulled from glenn's |
Sounds good. Thanks for clarifying. Edit: Though I think |
I didn't see your edit. That's... probably something I should've reported to the compiler team. Hmm. |
Hey, I'm not sure if this is a ReScript 11 thing or something else, but in order to make fetching work properly, I needed to change this line and this line in such way that neither have underscore as prefix
e.g.
=>
The current implementation does not work when using
DELETE
as method (at least). It causes an errorTypeError: Failed to construct 'Request': Request with GET/HEAD method cannot have body.
The text was updated successfully, but these errors were encountered: