From 28aee1f2720da122f83758b141c503f7bff18ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 3 Oct 2019 16:20:29 +0200 Subject: Document media type wildcard in content_types_accepted --- test/handlers/content_types_accepted_h.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/handlers/content_types_accepted_h.erl') diff --git a/test/handlers/content_types_accepted_h.erl b/test/handlers/content_types_accepted_h.erl index d34135e..df72f06 100644 --- a/test/handlers/content_types_accepted_h.erl +++ b/test/handlers/content_types_accepted_h.erl @@ -21,6 +21,8 @@ content_types_accepted(Req=#{qs := <<"multipart">>}, State) -> ], Req, State}; content_types_accepted(Req=#{qs := <<"param">>}, State) -> {[{{<<"text">>, <<"plain">>, [{<<"charset">>, <<"utf-8">>}]}, put_text_plain}], Req, State}; +content_types_accepted(Req=#{qs := <<"wildcard">>}, State) -> + {[{'*', put_text_plain}], Req, State}; content_types_accepted(Req=#{qs := <<"wildcard-param">>}, State) -> {[{{<<"text">>, <<"plain">>, '*'}, put_text_plain}], Req, State}. -- cgit v1.2.3