Skip to content

Comments

Content-Length for empty POST, PUT, PATCH requests.#129

Merged
lovelydinosaur merged 1 commit intodevfrom
content-length-0
Sep 16, 2025
Merged

Content-Length for empty POST, PUT, PATCH requests.#129
lovelydinosaur merged 1 commit intodevfrom
content-length-0

Conversation

@lovelydinosaur
Copy link
Contributor

@lovelydinosaur lovelydinosaur commented Sep 16, 2025

https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2
RFC 7230, Section 3.3.2, Content Length.

A user agent SHOULD send a Content-Length in a request message when no
Transfer-Encoding is sent and the request method defines a meaning for
an enclosed payload body. For example, a Content-Length header field is
normally sent in a POST request even when the value is 0.
(indicating an empty payload body).

@lovelydinosaur lovelydinosaur merged commit 1b8f00c into dev Sep 16, 2025
5 checks passed
@lovelydinosaur lovelydinosaur deleted the content-length-0 branch September 16, 2025 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant