From d4dff2105500d960479d278981f42d42beb54175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 1 Nov 2018 14:44:55 +0100 Subject: Accept a broader media type as input in rest_pastebin example --- examples/rest_pastebin/src/toppage_h.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/rest_pastebin/src/toppage_h.erl b/examples/rest_pastebin/src/toppage_h.erl index 712a875..5b130de 100644 --- a/examples/rest_pastebin/src/toppage_h.erl +++ b/examples/rest_pastebin/src/toppage_h.erl @@ -28,7 +28,7 @@ content_types_provided(Req, State) -> ], Req, State}. content_types_accepted(Req, State) -> - {[{{<<"application">>, <<"x-www-form-urlencoded">>, []}, create_paste}], + {[{{<<"application">>, <<"x-www-form-urlencoded">>, '*'}, create_paste}], Req, State}. resource_exists(Req, _State) -> -- cgit v1.2.3