Skip to content

Allow payload for DELETE #89

@srid

Description

@srid

From the rfc:

A payload within a DELETE request message has no defined semantics; sending a payload body on a DELETE request might cause some existing implementations to reject the request.

The spec does not forbid it, but the req library does. There are legitimate use cases for passing a body to DELETE request; for example, when deleting a file in a Git repo it is considered safe to pass the blob sha (so you don't end up accidentally deleting an updated file). GitHub API does this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions