aboutsummaryrefslogtreecommitdiffstats
path: root/examples/rest_pastebin/src/rest_pastebin_app.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-06-15 13:27:31 +0200
committerLoïc Hoguin <[email protected]>2016-06-15 13:27:31 +0200
commit43ccea87bc329d29ac427c32d731753f980fe704 (patch)
tree1945f6563229de5f593c1e8a8f3707b60e4aee6e /examples/rest_pastebin/src/rest_pastebin_app.erl
parent5003bae369901a6c771075ac4ef600d49b019570 (diff)
downloadcowboy-43ccea87bc329d29ac427c32d731753f980fe704.tar.gz
cowboy-43ccea87bc329d29ac427c32d731753f980fe704.tar.bz2
cowboy-43ccea87bc329d29ac427c32d731753f980fe704.zip
Fix rest_pastebin example
Diffstat (limited to 'examples/rest_pastebin/src/rest_pastebin_app.erl')
-rw-r--r--examples/rest_pastebin/src/rest_pastebin_app.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/rest_pastebin/src/rest_pastebin_app.erl b/examples/rest_pastebin/src/rest_pastebin_app.erl
index 10ba4c5..98ffe84 100644
--- a/examples/rest_pastebin/src/rest_pastebin_app.erl
+++ b/examples/rest_pastebin/src/rest_pastebin_app.erl
@@ -16,9 +16,9 @@ start(_Type, _Args) ->
{"/[:paste_id]", toppage_handler, []}
]}
]),
- {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
- {env, [{dispatch, Dispatch}]}
- ]),
+ {ok, _} = cowboy:start_clear(http, 100, [{port, 8080}], #{
+ env => #{dispatch => Dispatch}
+ }),
rest_pastebin_sup:start_link().
stop(_State) ->