diff options
Diffstat (limited to 'test/http_SUITE_data')
-rw-r--r-- | test/http_SUITE_data/http_errors.erl | 2 | ||||
-rw-r--r-- | test/http_SUITE_data/http_req_attr.erl | 2 | ||||
-rw-r--r-- | test/http_SUITE_data/rest_resource_etags.erl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/http_SUITE_data/http_errors.erl b/test/http_SUITE_data/http_errors.erl index f105c58..f646df5 100644 --- a/test/http_SUITE_data/http_errors.erl +++ b/test/http_SUITE_data/http_errors.erl @@ -5,7 +5,7 @@ -export([init/2]). init(Req, _Opts) -> - #{'case' := Case} = cowboy_req:match_qs(Req, ['case']), + #{'case' := Case} = cowboy_req:match_qs(['case'], Req), case_init(Case, Req). case_init(<<"init_before_reply">> = Case, _Req) -> diff --git a/test/http_SUITE_data/http_req_attr.erl b/test/http_SUITE_data/http_req_attr.erl index ce9c185..d8483a5 100644 --- a/test/http_SUITE_data/http_req_attr.erl +++ b/test/http_SUITE_data/http_req_attr.erl @@ -7,7 +7,7 @@ -export([init/2]). init(Req, Opts) -> - #{attr := Attr} = cowboy_req:match_qs(Req, [attr]), + #{attr := Attr} = cowboy_req:match_qs([attr], Req), <<"host_and_port">> = Attr, Host = cowboy_req:host(Req), Port = cowboy_req:port(Req), diff --git a/test/http_SUITE_data/rest_resource_etags.erl b/test/http_SUITE_data/rest_resource_etags.erl index 23b9dfc..1ea3005 100644 --- a/test/http_SUITE_data/rest_resource_etags.erl +++ b/test/http_SUITE_data/rest_resource_etags.erl @@ -9,7 +9,7 @@ init(Req, Opts) -> {cowboy_rest, Req, Opts}. generate_etag(Req, State) -> - #{type := Type} = cowboy_req:match_qs(Req, [type]), + #{type := Type} = cowboy_req:match_qs([type], Req), case Type of %% Correct return values from generate_etag/2. <<"tuple-weak">> -> |