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.
View all comments
Show parent comment
1
u/gringrant Oct 11 '26
Content-Length MUST be 0