Skip to content

POST with empty body #20

Description

@damianbl

POST with empty body is not forbidden by the HTTP spec.
However I cannot do it using fetchival.
Probably the problem is caused by the Content-Type header (set to "application/json") which is not removed when the body is deleted.
It is also expected that when the body is empty the Content-Lenght header is set to 0.

If you agree, I can make a PR fixing it.

Thanks,
Damian.

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