diff options
author | Loïc Hoguin <[email protected]> | 2018-04-30 13:48:34 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-04-30 13:48:34 +0200 |
commit | 7d4791b32cefeec0ebc5a21e85154bf03344ca5e (patch) | |
tree | 4169d174ef0ab3aabfa3c37606893d9a0e6e53ae /test/rfc7540_SUITE.erl | |
parent | 658620019c045de1a2b847f8579afdd42cef68ce (diff) | |
download | cowboy-7d4791b32cefeec0ebc5a21e85154bf03344ca5e.tar.gz cowboy-7d4791b32cefeec0ebc5a21e85154bf03344ca5e.tar.bz2 cowboy-7d4791b32cefeec0ebc5a21e85154bf03344ca5e.zip |
Fix some rfc7540 tests that had an empty :path
Diffstat (limited to 'test/rfc7540_SUITE.erl')
-rw-r--r-- | test/rfc7540_SUITE.erl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/rfc7540_SUITE.erl b/test/rfc7540_SUITE.erl index 509d1d3..b7227e8 100644 --- a/test/rfc7540_SUITE.erl +++ b/test/rfc7540_SUITE.erl @@ -3643,7 +3643,7 @@ reject_missing_pseudo_header_method(Config) -> {HeadersBlock, _} = cow_hpack:encode([ {<<":scheme">>, <<"http">>}, {<<":authority">>, <<"localhost">>}, %% @todo Correct port number. - {<<":path">>, <<>>} + {<<":path">>, <<"/">>} ]), ok = gen_tcp:send(Socket, cow_http2:headers(1, fin, HeadersBlock)), %% Receive a PROTOCOL_ERROR stream error. @@ -3660,7 +3660,7 @@ reject_many_pseudo_header_method(Config) -> {<<":method">>, <<"GET">>}, {<<":scheme">>, <<"http">>}, {<<":authority">>, <<"localhost">>}, %% @todo Correct port number. - {<<":path">>, <<>>} + {<<":path">>, <<"/">>} ]), ok = gen_tcp:send(Socket, cow_http2:headers(1, fin, HeadersBlock)), %% Receive a PROTOCOL_ERROR stream error. @@ -3675,7 +3675,7 @@ reject_missing_pseudo_header_scheme(Config) -> {HeadersBlock, _} = cow_hpack:encode([ {<<":method">>, <<"GET">>}, {<<":authority">>, <<"localhost">>}, %% @todo Correct port number. - {<<":path">>, <<>>} + {<<":path">>, <<"/">>} ]), ok = gen_tcp:send(Socket, cow_http2:headers(1, fin, HeadersBlock)), %% Receive a PROTOCOL_ERROR stream error. @@ -3692,7 +3692,7 @@ reject_many_pseudo_header_scheme(Config) -> {<<":scheme">>, <<"http">>}, {<<":scheme">>, <<"http">>}, {<<":authority">>, <<"localhost">>}, %% @todo Correct port number. - {<<":path">>, <<>>} + {<<":path">>, <<"/">>} ]), ok = gen_tcp:send(Socket, cow_http2:headers(1, fin, HeadersBlock)), %% Receive a PROTOCOL_ERROR stream error. @@ -3707,7 +3707,7 @@ reject_missing_pseudo_header_authority(Config) -> {HeadersBlock, _} = cow_hpack:encode([ {<<":method">>, <<"GET">>}, {<<":scheme">>, <<"http">>}, - {<<":path">>, <<>>} + {<<":path">>, <<"/">>} ]), ok = gen_tcp:send(Socket, cow_http2:headers(1, fin, HeadersBlock)), %% Receive a PROTOCOL_ERROR stream error. @@ -3724,7 +3724,7 @@ reject_many_pseudo_header_authority(Config) -> {<<":scheme">>, <<"http">>}, {<<":authority">>, <<"localhost">>}, %% @todo Correct port number. {<<":authority">>, <<"localhost">>}, %% @todo Correct port number. - {<<":path">>, <<>>} + {<<":path">>, <<"/">>} ]), ok = gen_tcp:send(Socket, cow_http2:headers(1, fin, HeadersBlock)), %% Receive a PROTOCOL_ERROR stream error. @@ -3755,8 +3755,8 @@ reject_many_pseudo_header_path(Config) -> {<<":method">>, <<"GET">>}, {<<":scheme">>, <<"http">>}, {<<":authority">>, <<"localhost">>}, %% @todo Correct port number. - {<<":path">>, <<>>}, - {<<":path">>, <<>>} + {<<":path">>, <<"/">>}, + {<<":path">>, <<"/">>} ]), ok = gen_tcp:send(Socket, cow_http2:headers(1, fin, HeadersBlock)), %% Receive a PROTOCOL_ERROR stream error. @@ -3878,7 +3878,7 @@ reject_duplicate_content_length_header(Config) -> {<<":method">>, <<"GET">>}, {<<":scheme">>, <<"http">>}, {<<":authority">>, <<"localhost">>}, %% @todo Correct port number. - {<<":path">>, <<>>}, + {<<":path">>, <<"/">>}, {<<"content-length">>, <<"12">>}, {<<"content-length">>, <<"12">>} ]), |