Skip to content

POST with emtpy Body #2395

@predic8

Description

@predic8

A POST without a body causes Membrane to wait on that thread.

RFC Reference (short)

  • RFC 9112 (HTTP/1.1 Semantics) allows POST without body.
  • A sender should send a Content-Length or Transfer-Encoding only if a body exists.
  • Absence of either simply means: empty body.

Change:
If there is no Content-Length and no Transfer-Encoding => Do not wait but Forward

Cases:

POST /foo
Content-Type: application/json

=> Request with empty body => Forward

POST /
Content-Length: 5

hello

=> Forward

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions