0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 04:10:24 +00:00

Shorten the 204/304 error message

This commit is contained in:
Loïc Hoguin 2024-01-09 11:01:39 +01:00
parent a40bab8fb3
commit f0101ffe41
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -830,7 +830,7 @@ do_reply_ensure_no_body(Status, Headers, Body, Req) ->
do_reply(Status, Headers, Body, Req);
_ ->
exit({response_error, payload_too_large,
'204 and 304 responses must not include a response body. (RFC7230 3.3)'})
'204 and 304 responses must not include a body. (RFC7230 3.3)'})
end.
%% Don't send any body for HEAD responses. While the protocol code is