Skip to content

Fetch RequestInit method parameter issue #128

Closed
@TomiS

Description

@TomiS

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.

~_method: string=?,

=>

~method: string=?,

The current implementation does not work when using DELETE as method (at least). It causes an error
TypeError: Failed to construct 'Request': Request with GET/HEAD method cannot have body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions