Browse Source

Accept a broader media type as input in rest_pastebin example

Loïc Hoguin 6 years ago
parent
commit
d4dff21055
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/rest_pastebin/src/toppage_h.erl

+ 1 - 1
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) ->