aboutsummaryrefslogtreecommitdiffstats
path: root/examples/rest_pastebin
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-01 14:44:55 +0100
committerLoïc Hoguin <[email protected]>2018-11-01 14:44:55 +0100
commitd4dff2105500d960479d278981f42d42beb54175 (patch)
treee4b45dbc49fc2dc19a3175c3b7e27f19205d105a /examples/rest_pastebin
parentb3bfcf068c20573ae06df42530f1a6d4dc6842c7 (diff)
downloadcowboy-d4dff2105500d960479d278981f42d42beb54175.tar.gz
cowboy-d4dff2105500d960479d278981f42d42beb54175.tar.bz2
cowboy-d4dff2105500d960479d278981f42d42beb54175.zip
Accept a broader media type as input in rest_pastebin example
Diffstat (limited to 'examples/rest_pastebin')
-rw-r--r--examples/rest_pastebin/src/toppage_h.erl2
1 files changed, 1 insertions, 1 deletions
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) ->