From 47ecfd73181dc888f01479069cb7e076352da9ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 5 Feb 2020 18:06:00 +0100 Subject: Add a test confirming push requests have no body --- test/handlers/resp_h.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/handlers/resp_h.erl') diff --git a/test/handlers/resp_h.erl b/test/handlers/resp_h.erl index cf21536..d43152e 100644 --- a/test/handlers/resp_h.erl +++ b/test/handlers/resp_h.erl @@ -379,6 +379,8 @@ do(<<"stream_trailers">>, Req0, Opts) -> end; do(<<"push">>, Req, Opts) -> case cowboy_req:binding(arg, Req) of + <<"read_body">> -> + cowboy_req:push("/echo/read_body", #{}, Req, #{}); <<"method">> -> cowboy_req:push("/static/style.css", #{<<"accept">> => <<"text/css">>}, Req, #{method => <<"HEAD">>}); -- cgit v1.2.3