Skip to content

dataless DELETE should be allowed an empty Content-Type #27

Open

Description

@escobera

Hello there,

This code is setting up a Content-Type for DELETE requests without data.

The rfc states:

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.

From this I get that a request without a payload shouldn't have a mandatory content type.

The solution seems pretty simple, just add a delete to the regex that checks the verb used. If you agree with what I stated I can open a PR for this.

Activity

  1. escobera commented on Oct 23, 2016

    @escobera
    Author

    @trek is this project still alive?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions