mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Accept a broader media type as input in rest_pastebin example
This commit is contained in:
parent
b3bfcf068c
commit
d4dff21055
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ content_types_provided(Req, State) ->
|
||||||
], Req, State}.
|
], Req, State}.
|
||||||
|
|
||||||
content_types_accepted(Req, State) ->
|
content_types_accepted(Req, State) ->
|
||||||
{[{{<<"application">>, <<"x-www-form-urlencoded">>, []}, create_paste}],
|
{[{{<<"application">>, <<"x-www-form-urlencoded">>, '*'}, create_paste}],
|
||||||
Req, State}.
|
Req, State}.
|
||||||
|
|
||||||
resource_exists(Req, _State) ->
|
resource_exists(Req, _State) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue