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 --- src/cowboy_rest.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl index 7be3e26..9a73374 100644 --- a/src/cowboy_rest.erl +++ b/src/cowboy_rest.erl @@ -61,7 +61,7 @@ -optional_callbacks([charsets_provided/2]). -callback content_types_accepted(Req, State) - -> {[{binary() | {binary(), binary(), '*' | [{binary(), binary()}]}, atom()}], Req, State} + -> {[{'*' | binary() | {binary(), binary(), '*' | [{binary(), binary()}]}, atom()}], Req, State} | {stop, Req, State} | {switch_handler(), Req, State} when Req::cowboy_req:req(), State::any(). -- cgit v1.2.3