diff options
author | Loïc Hoguin <[email protected]> | 2024-01-09 10:59:40 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2024-01-09 10:59:40 +0100 |
commit | a40bab8fb3491a587c93bedb53404decacfe49dc (patch) | |
tree | 18c66b7a0308b60364747fb2dca8108140b52b22 /test/handlers/resp_h.erl | |
parent | e4a78aaeb110a3eda5269b618230b8bcb18fbcc2 (diff) | |
download | cowboy-a40bab8fb3491a587c93bedb53404decacfe49dc.tar.gz cowboy-a40bab8fb3491a587c93bedb53404decacfe49dc.tar.bz2 cowboy-a40bab8fb3491a587c93bedb53404decacfe49dc.zip |
Improve the error when trying to send a 204/304 with a body
Diffstat (limited to 'test/handlers/resp_h.erl')
-rw-r--r-- | test/handlers/resp_h.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/handlers/resp_h.erl b/test/handlers/resp_h.erl index 8031d0e..735c654 100644 --- a/test/handlers/resp_h.erl +++ b/test/handlers/resp_h.erl @@ -182,10 +182,10 @@ do(<<"reply4">>, Req0, Opts) -> ct_helper:ignore(erlang, iolist_size, 1), cowboy_req:reply(200, #{}, ok, Req0); <<"204body">> -> - ct_helper:ignore(cowboy_req, reply, 4), + ct_helper:ignore(cowboy_req, do_reply_ensure_no_body, 4), cowboy_req:reply(204, #{}, <<"OK">>, Req0); <<"304body">> -> - ct_helper:ignore(cowboy_req, reply, 4), + ct_helper:ignore(cowboy_req, do_reply_ensure_no_body, 4), cowboy_req:reply(304, #{}, <<"OK">>, Req0); Status -> cowboy_req:reply(binary_to_integer(Status), #{}, <<"OK">>, Req0) |