diff options
Diffstat (limited to 'test/spdy_SUITE.erl')
-rw-r--r-- | test/spdy_SUITE.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/spdy_SUITE.erl b/test/spdy_SUITE.erl index 3f2541f..e27804e 100644 --- a/test/spdy_SUITE.erl +++ b/test/spdy_SUITE.erl @@ -222,7 +222,9 @@ reject_data_on_half_closed_stream(_) -> {ok, ServerPid, Port} = spdy_server:start_link(), {ok, ConnPid} = gun:open("localhost", Port, #{transport=>ssl}), {ok, spdy} = gun:await_up(ConnPid), - _ = gun:get(ConnPid, "/"), + %% Send a POST frame with a content header so that Gun leaves this + %% stream alive after the server sends the reply. + _ = gun:post(ConnPid, "/", [{<<"content-length">>, <<"5">>}]), spdy_server:send(ServerPid, [ {syn_reply, 1, true, <<"200">>, <<"HTTP/1.1">>, []}, {data, 1, true, <<"Hello world!">>} |