mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Shorten the 204/304 error message
This commit is contained in:
parent
a40bab8fb3
commit
f0101ffe41
1 changed files with 1 additions and 1 deletions
|
@ -830,7 +830,7 @@ do_reply_ensure_no_body(Status, Headers, Body, Req) ->
|
||||||
do_reply(Status, Headers, Body, Req);
|
do_reply(Status, Headers, Body, Req);
|
||||||
_ ->
|
_ ->
|
||||||
exit({response_error, payload_too_large,
|
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.
|
end.
|
||||||
|
|
||||||
%% Don't send any body for HEAD responses. While the protocol code is
|
%% Don't send any body for HEAD responses. While the protocol code is
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue