diff options
author | Loïc Hoguin <[email protected]> | 2018-11-01 14:44:55 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-11-01 14:44:55 +0100 |
commit | d4dff2105500d960479d278981f42d42beb54175 (patch) | |
tree | e4b45dbc49fc2dc19a3175c3b7e27f19205d105a /examples/rest_pastebin | |
parent | b3bfcf068c20573ae06df42530f1a6d4dc6842c7 (diff) | |
download | cowboy-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.erl | 2 |
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) -> |