r/ProgrammerHumor • • Oct 08 '26

Meme atThisPointImTooAfraidTooAsk

Post image
4.4k Upvotes

86 comments sorted by

View all comments

Show parent comment

5

u/HugoNikanor Oct 11 '26

RFC 9110 (HTTP) specifies that:

A user agent SHOULD NOT send a Content-Length header field when the request message does not contain content and the method semantics do not anticipate such data

So I feel a better semantic would would a 204 (No Content) response, which would remove the need for a content-length header altogether.