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

Accept a broader media type as input in rest_pastebin example

This commit is contained in:
Loïc Hoguin 2018-11-01 14:44:55 +01:00
parent b3bfcf068c
commit d4dff21055
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -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) ->