From 7d4791b32cefeec0ebc5a21e85154bf03344ca5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 30 Apr 2018 13:48:34 +0200 Subject: Fix some rfc7540 tests that had an empty :path --- test/rfc7540_SUITE.erl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/rfc7540_SUITE.erl') 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">>} ]), -- cgit v1.2.3