diff options
author | Loïc Hoguin <[email protected]> | 2020-02-05 18:06:00 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-02-05 18:06:00 +0100 |
commit | 47ecfd73181dc888f01479069cb7e076352da9ca (patch) | |
tree | 1f7160d53c9e2993aa4723b0cdf84855b96868dc /test/handlers/resp_h.erl | |
parent | 752297b1539b4f74c9329c873f78485a52b5b8bd (diff) | |
download | cowboy-47ecfd73181dc888f01479069cb7e076352da9ca.tar.gz cowboy-47ecfd73181dc888f01479069cb7e076352da9ca.tar.bz2 cowboy-47ecfd73181dc888f01479069cb7e076352da9ca.zip |
Add a test confirming push requests have no body
Diffstat (limited to 'test/handlers/resp_h.erl')
-rw-r--r-- | test/handlers/resp_h.erl | 2 |
1 files changed, 2 insertions, 0 deletions
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">>}); |