0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Document media type wildcard in content_types_accepted

This commit is contained in:
Loïc Hoguin 2019-10-03 16:20:29 +02:00
parent 1ba48c58b1
commit 28aee1f272
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
4 changed files with 26 additions and 2 deletions

View file

@ -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}.